Debug code for follows and unfollows

parent 5a4a66c0
Pipeline #159 passed with stage
in 59 seconds
......@@ -43,6 +43,9 @@ class InboxHandler
end
def handle_follow(actor, activity)
puts "FOLLOW:"
pp actor, activity
unless activity.object_is_public_collection?
error(400, "Follow only allowed for #{Activity::PUBLIC_COLLECTION}")
end
......@@ -51,6 +54,9 @@ class InboxHandler
end
def handle_unfollow(actor, activity)
puts "UNFOLLOW:"
pp actor, activity
PubRelay.redis.del("subscription:#{actor.domain}")
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment