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,
|
accept,
|
||||||
UserType(id=self.target_id, private_key=key),
|
UserType(id=self.target_id, private_key=key),
|
||||||
recipients=[{
|
recipients=[{
|
||||||
"fid": profile.inboxes["private"],
|
"endpoint": profile.inboxes["private"],
|
||||||
|
"fid": self.actor_id,
|
||||||
"protocol": "activitypub",
|
"protocol": "activitypub",
|
||||||
"public": False,
|
"public": False,
|
||||||
}],
|
}],
|
||||||
|
|
|
@ -93,7 +93,8 @@ class TestEntitiesPostReceive:
|
||||||
assert args[1].id == "https://example.com/profile"
|
assert args[1].id == "https://example.com/profile"
|
||||||
assert isinstance(args[1].private_key, RsaKey)
|
assert isinstance(args[1].private_key, RsaKey)
|
||||||
assert kwargs['recipients'] == [{
|
assert kwargs['recipients'] == [{
|
||||||
"fid": "https://example.com/bob/private",
|
"endpoint": "https://example.com/bob/private",
|
||||||
|
"fid": "https://localhost/profile",
|
||||||
"protocol": "activitypub",
|
"protocol": "activitypub",
|
||||||
"public": False,
|
"public": False,
|
||||||
}]
|
}]
|
||||||
|
|
Ładowanie…
Reference in New Issue