From 2e614738f72c9af634c4a630693d06f144bc24df Mon Sep 17 00:00:00 2001 From: pdp8 Date: Wed, 12 Jul 2023 14:49:22 +0200 Subject: signed fetch for mastodon instances with AUTHORIZED_FETCH (e.g. mastodon.art) --- client.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client.rb') diff --git a/client.rb b/client.rb index 8f3557a..c2c64ea 100644 --- a/client.rb +++ b/client.rb @@ -3,7 +3,7 @@ # client-server post '/' do protected! - date = Time.now.strftime('%Y-%m-%dT%H:%M:%S.%N') + Time.now.strftime('%Y-%m-%dT%H:%M:%S.%N') recipients = public recipients << params[:to] @@ -70,7 +70,7 @@ end post '/follow' do protected! - actor, mention = parse_follow params['follow'] + actor, = parse_follow params['follow'] outbox 'Follow', actor, [actor] redirect(params['anchor'] || '/inbox') end @@ -109,7 +109,7 @@ end @threads << object else collection.select { |o| o['id'] == object['inReplyTo'] }.each do |o| - object['indent'] = o['indent'] + 4 + object['indent'] = o['indent'] + 2 o['replies'] << object end end -- cgit v1.2.3