From 9781dda58c3d2926f928544a8155d493fc2f1ca2 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Sun, 13 Aug 2023 10:31:26 +0200 Subject: activity/object saving, send activities from file --- client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client.rb') diff --git a/client.rb b/client.rb index bc153f5..b44f9ba 100644 --- a/client.rb +++ b/client.rb @@ -53,7 +53,7 @@ post '/unfollow' do params['id'] = actor params['mention'] if params['mention'] following = Dir[File.join(OUTBOX[:dir], 'follow', '*.json')].collect { |f| JSON.parse(File.read(f)) } activity = following.find { |a| a['object'] == params['id'] } - activity ||= save_activity({ 'type' => 'Follow', 'actor' => ACTOR, 'object' => params['id'] }, OUTBOX) # recreate activity for old/deleted follows + # activity ||= save_activity({ 'type' => 'Follow', 'actor' => ACTOR, 'object' => params['id'] }, OUTBOX) # recreate activity for old/deleted follows outbox 'Undo', activity, [params['id']] update_collection FOLLOWING, params['id'], true 200 -- cgit v1.2.3