diff options
author | pdp8 <pdp8@pdp8.info> | 2023-08-13 10:31:26 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2023-08-13 10:31:26 +0200 |
commit | 9781dda58c3d2926f928544a8155d493fc2f1ca2 (patch) | |
tree | 74d709ee31d90ff02e6c55c7d9ab473e5eff50a2 /client.rb | |
parent | 3a8be7b1606885b3b94bc22a6d775a6527e1c07d (diff) |
activity/object saving, send activities from file
Diffstat (limited to 'client.rb')
-rw-r--r-- | client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |