diff options
Diffstat (limited to 'server.rb')
-rw-r--r-- | server.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |