Fix remote follow (fixes #10)

This commit is contained in:
Thomas Sileo 2018-06-24 19:22:40 +02:00
parent c8eed9e89c
commit c85fb8530e

2
app.py
View file

@ -397,7 +397,7 @@ def authorize_follow():
if DB.following.find({"remote_actor": actor}).count() > 0: if DB.following.find({"remote_actor": actor}).count() > 0:
return redirect("/following") return redirect("/following")
follow = activitypub.Follow(actor=MY_PERSON.id, object=actor) follow = ap.Follow(actor=MY_PERSON.id, object=actor)
OUTBOX.post(follow) OUTBOX.post(follow)
return redirect("/following") return redirect("/following")