summaryrefslogtreecommitdiff
path: root/client.rb
diff options
context:
space:
mode:
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