From 343998896e4d4795eefcfc5fa04fb0339f38a8fe Mon Sep 17 00:00:00 2001 From: pdp8 Date: Wed, 21 Jun 2023 14:32:45 +0200 Subject: send_signed fixed! --- client.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client.rb') 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", -- cgit v1.2.3