summaryrefslogtreecommitdiff
path: root/server.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2024-08-10 00:29:02 +0200
committerpdp8 <pdp8@pdp8.info>2024-08-10 00:29:02 +0200
commit7f3023df5be705436544b5724a6b83c2717aa0b8 (patch)
tree99687362f33cdf6c8f83f2cdd2d20875d8df0480 /server.rb
parent060492722d6137225a9e00add6c7f150d014927d (diff)
improved outbox html, background sending
Diffstat (limited to 'server.rb')
-rw-r--r--server.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.rb b/server.rb
index d9983ef..ff1c73b 100644
--- a/server.rb
+++ b/server.rb
@@ -19,6 +19,7 @@ get '/' do
end
get '/outbox/:activity', provides: 'html' do
+ # outbox_html params['activity']
redirect "https://pdp8.info/social/#{params['activity']}.html"
end
@@ -137,8 +138,7 @@ helpers do
def delete
file = File.join(INBOX_DIR, @activity['object']['id'].sub('https://', ''))
- # file, object = find_object(@activity['object']['id'])
- FileUtils.rm(file) if file and File.exist? file # and @activity['actor'] == @activity['object']['attributedTo']
+ FileUtils.rm_f(file) if file
end
def move