diff options
Diffstat (limited to 'client.rb')
-rw-r--r-- | client.rb | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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", |