diff options
author | pdp8 <pdp8@pdp8.info> | 2023-07-12 14:49:22 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2023-07-12 14:49:22 +0200 |
commit | 2e614738f72c9af634c4a630693d06f144bc24df (patch) | |
tree | bbd9bf6d227d8dfe9e131e3c1307b58693a8a431 /client.rb | |
parent | 7f38d569d8dd2491d1b9b8bc0ff1ae016b02f34f (diff) |
signed fetch for mastodon instances with AUTHORIZED_FETCH (e.g. mastodon.art)
Diffstat (limited to 'client.rb')
-rw-r--r-- | client.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |