kopia lustrzana https://gitlab.com/jaywink/federation
Fix regression in sending back an Accept for a Follow
rodzic
f224202739
commit
9609892b9f
|
@ -66,7 +66,8 @@ class ActivitypubFollow(ActivitypubObjectMixin, Follow):
|
|||
accept,
|
||||
UserType(id=self.target_id, private_key=key),
|
||||
recipients=[{
|
||||
"fid": profile.inboxes["private"],
|
||||
"endpoint": profile.inboxes["private"],
|
||||
"fid": self.actor_id,
|
||||
"protocol": "activitypub",
|
||||
"public": False,
|
||||
}],
|
||||
|
|
|
@ -93,7 +93,8 @@ class TestEntitiesPostReceive:
|
|||
assert args[1].id == "https://example.com/profile"
|
||||
assert isinstance(args[1].private_key, RsaKey)
|
||||
assert kwargs['recipients'] == [{
|
||||
"fid": "https://example.com/bob/private",
|
||||
"endpoint": "https://example.com/bob/private",
|
||||
"fid": "https://localhost/profile",
|
||||
"protocol": "activitypub",
|
||||
"public": False,
|
||||
}]
|
||||
|
|
Ładowanie…
Reference in New Issue