summaryrefslogtreecommitdiff
path: root/server.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2023-07-25 00:24:02 +0200
committerpdp8 <pdp8@pdp8.info>2023-07-25 00:24:02 +0200
commit3daf30b0a3837d3d8becb0baceed580e92403ce6 (patch)
tree8e0ac2d67a0ead3e0bd324088485618927858bb2 /server.rb
parent0f039c1b813653869033e961810942f479a28685 (diff)
send notes to outbox
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