summaryrefslogtreecommitdiff
path: root/client.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2023-08-13 10:31:26 +0200
committerpdp8 <pdp8@pdp8.info>2023-08-13 10:31:26 +0200
commit9781dda58c3d2926f928544a8155d493fc2f1ca2 (patch)
tree74d709ee31d90ff02e6c55c7d9ab473e5eff50a2 /client.rb
parent3a8be7b1606885b3b94bc22a6d775a6527e1c07d (diff)
activity/object saving, send activities from file
Diffstat (limited to 'client.rb')
-rw-r--r--client.rb2
1 files changed, 1 insertions, 1 deletions
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