Fix the recipients helper

pull/9/head
Thomas Sileo 2018-07-09 22:20:46 +02:00
rodzic 24c051b7da
commit 4f513b984c
1 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -543,12 +543,11 @@ class BaseActivity(object, metaclass=_ActivityMeta):
recipients = self._recipients()
actor_id = self.get_actor().id
out = self.extra_inboxes()
out: List[str] = []
if self.type == ActivityType.CREATE.value:
out = self.extra_inboxes()
for recipient in recipients:
# if recipient in PUBLIC_INSTANCES:
# if recipient not in out:
# out.append(str(recipient))
# continue
if recipient in [actor_id, AS_PUBLIC, None]:
continue