From 3daf30b0a3837d3d8becb0baceed580e92403ce6 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Tue, 25 Jul 2023 00:24:02 +0200 Subject: send notes to outbox --- helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helpers.rb') diff --git a/helpers.rb b/helpers.rb index 6812a83..5344606 100644 --- a/helpers.rb +++ b/helpers.rb @@ -6,7 +6,7 @@ helpers do # add date and id, save def save_activity(activity, box) date = Time.now.utc.iso8601 - activity['published'] = date if box == OUTBOX + activity['published'] ||= date # if box == OUTBOX basename = "#{activity['published']}_#{mention(activity['actor'])}.json" activity_rel_path = File.join(activity['type'].downcase, basename) activity_path = File.join(box[:dir], activity_rel_path) -- cgit v1.2.3