summaryrefslogtreecommitdiff
path: root/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'client.rb')
-rw-r--r--client.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/client.rb b/client.rb
index 2067937..512c1d3 100644
--- a/client.rb
+++ b/client.rb
@@ -1,4 +1,3 @@
-
# client-server
post "/outbox" do
protected!
@@ -62,10 +61,12 @@ post "/delete_all" do
redirect to("/")
end
-post "/follow/*/*" do
+post "/follow/*" do
protected!
mention = params['splat'][0]
actor = actor(mention)
+ p mention
+ p actor
follow = { "@context" => "https://www.w3.org/ns/activitystreams",
"id" => File.join(SOCIAL_URL, "following", mention + ".json"),
"type" => "Follow",