summaryrefslogtreecommitdiff
path: root/server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'server.rb')
-rw-r--r--server.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/server.rb b/server.rb
index 666b59e..e9f4f2e 100644
--- a/server.rb
+++ b/server.rb
@@ -83,6 +83,11 @@ helpers do
update_collection FOLLOWERS, @activity['object']['actor'], true
end
+ def update
+ FileUtils.rm(find_file(@activity['object']['id']))
+ create
+ end
+
# https://github.com/mastodon/mastodon/blob/main/app/controllers/concerns/signature_verification.rb
def verify!
# digest