summaryrefslogtreecommitdiff
path: root/client.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2023-06-21 14:32:45 +0200
committerpdp8 <pdp8@pdp8.info>2023-06-21 14:32:45 +0200
commit343998896e4d4795eefcfc5fa04fb0339f38a8fe (patch)
tree13db5358a9606a3556505bca4dea8ef7ce884b9e /client.rb
parente1a5a8283ff69eb906d4c93b31d8cec1fae1b6c5 (diff)
send_signed fixed!
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",