summaryrefslogtreecommitdiff
path: root/helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.rb')
-rw-r--r--helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers.rb b/helpers.rb
index 94ec2e1..6812a83 100644
--- a/helpers.rb
+++ b/helpers.rb
@@ -12,7 +12,7 @@ helpers do
activity_path = File.join(box[:dir], activity_rel_path)
if box == OUTBOX
activity['id'] = File.join(box[:url], activity_rel_path)
- activity['object']['published'] = date
+ activity['object']['published'] = date unless activity['object'].is_a? String
end
# save object
save_object activity['object'], box if activity['object'] && activity['object']['type'] && !activity['object']['id']