kopia lustrzana https://github.com/tsileo/little-boxes
No more extra inboxes
rodzic
f21f5c1112
commit
74aa549aea
|
@ -532,8 +532,6 @@ class BaseActivity(object, metaclass=_ActivityMeta):
|
||||||
actor_id = self.get_actor().id
|
actor_id = self.get_actor().id
|
||||||
|
|
||||||
out: List[str] = []
|
out: List[str] = []
|
||||||
if self.type == ActivityType.CREATE.value:
|
|
||||||
out = BACKEND.extra_inboxes()
|
|
||||||
|
|
||||||
for recipient in recipients:
|
for recipient in recipients:
|
||||||
if recipient in [actor_id, AS_PUBLIC, None]:
|
if recipient in [actor_id, AS_PUBLIC, None]:
|
||||||
|
|
|
@ -70,10 +70,6 @@ class Backend(abc.ABC):
|
||||||
) -> List[str]:
|
) -> List[str]:
|
||||||
return parse_collection(payload=payload, url=url, fetcher=self.fetch_iri)
|
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(
|
def is_from_outbox(
|
||||||
self, as_actor: "ap.Person", activity: "ap.BaseActivity"
|
self, as_actor: "ap.Person", activity: "ap.BaseActivity"
|
||||||
) -> bool:
|
) -> bool:
|
||||||
|
|
Ładowanie…
Reference in New Issue