summaryrefslogtreecommitdiff
path: root/helpers.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2023-07-24 17:34:43 +0200
committerpdp8 <pdp8@pdp8.info>2023-07-24 17:34:43 +0200
commit0f039c1b813653869033e961810942f479a28685 (patch)
tree3268286b6cc892b1af4bfdf34921f9040600973a /helpers.rb
parenta509c55faca368709044133199f71fb862b1e605 (diff)
public outbox, inbox/outbox threads
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']