summaryrefslogtreecommitdiff
path: root/client.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2023-07-12 14:49:22 +0200
committerpdp8 <pdp8@pdp8.info>2023-07-12 14:49:22 +0200
commit2e614738f72c9af634c4a630693d06f144bc24df (patch)
treebbd9bf6d227d8dfe9e131e3c1307b58693a8a431 /client.rb
parent7f38d569d8dd2491d1b9b8bc0ff1ae016b02f34f (diff)
signed fetch for mastodon instances with AUTHORIZED_FETCH (e.g. mastodon.art)
Diffstat (limited to 'client.rb')
-rw-r--r--client.rb6
1 files changed, 3 insertions, 3 deletions
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