No more extra inboxes

litepub
Thomas Sileo 2019-08-25 10:53:04 +02:00
rodzic f21f5c1112
commit 74aa549aea
2 zmienionych plików z 0 dodań i 6 usunięć

Wyświetl plik

@ -532,8 +532,6 @@ class BaseActivity(object, metaclass=_ActivityMeta):
actor_id = self.get_actor().id
out: List[str] = []
if self.type == ActivityType.CREATE.value:
out = BACKEND.extra_inboxes()
for recipient in recipients:
if recipient in [actor_id, AS_PUBLIC, None]:

Wyświetl plik

@ -70,10 +70,6 @@ class Backend(abc.ABC):
) -> List[str]:
return parse_collection(payload=payload, url=url, fetcher=self.fetch_iri)
def extra_inboxes(self) -> List[str]:
"""Allows to define inboxes that will be part of of the recipient for every activity."""
return []
def is_from_outbox(
self, as_actor: "ap.Person", activity: "ap.BaseActivity"
) -> bool: