Fix sending accept when receiving a remote AP follow

merge-requests/143/head
Jason Robinson 2019-03-17 23:47:51 +02:00
rodzic 4b62b83908
commit a72494240b
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -54,7 +54,15 @@ class ActivitypubFollow(ActivitypubEntityMixin, Follow):
target_id=self.activity_id,
)
try:
handle_send(accept, UserType(id=self.target_id, private_key=key), recipients=[self.actor_id])
handle_send(
accept,
UserType(id=self.target_id, private_key=key),
recipients=[{
"fid": self.actor_id,
"protocol": "activitypub",
"public": False,
}],
)
except Exception:
logger.exception("ActivitypubFollow.post_receive - Failed to send Accept back")