diff options
Diffstat (limited to 'client.rb')
-rw-r--r-- | client.rb | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -28,6 +28,7 @@ post '/announce' do # TODO to = ['https://www.w3.org/ns/activitystreams#Public', FOLLOWERS_URL] to << params['attributedTo'] create_activity 'Announce', params['id'], to + outbox_html('announce') 200 end @@ -41,6 +42,11 @@ post '/undo' do # TODO: generalize for announce create_activity 'Undo', params['id'], activity['to'] FileUtils.rm(activity_file) FileUtils.rm(object_file) + if activity_file.match 'create' + outbox_html('create') + elsif activity_file.match 'announce' + outbox_html('announce') + end end 200 end |