kopia lustrzana https://github.com/tsileo/little-boxes
Formatting
rodzic
a43de7da1a
commit
2175fc57a8
|
@ -69,12 +69,6 @@ class Backend(abc.ABC):
|
|||
) -> bool:
|
||||
return activity.get_actor().id == as_actor.id
|
||||
|
||||
@abc.abstractmethod
|
||||
def post_to_remote_inbox(
|
||||
self, as_actor: "ap.Person", payload_encoded: str, recp: str
|
||||
) -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def base_url(self) -> str:
|
||||
pass # pragma: no cover
|
||||
|
@ -125,10 +119,6 @@ class Backend(abc.ABC):
|
|||
|
||||
return out
|
||||
|
||||
@abc.abstractmethod
|
||||
def inbox_check_duplicate(self, as_actor: "ap.Person", iri: str) -> bool:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def activity_url(self, obj_id: str) -> str:
|
||||
pass # pragma: no cover
|
||||
|
@ -136,91 +126,3 @@ class Backend(abc.ABC):
|
|||
@abc.abstractmethod
|
||||
def note_url(self, obj_id: str) -> str:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def outbox_create(self, as_actor: "ap.Person", activity: "ap.Create") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def outbox_delete(self, as_actor: "ap.Person", activity: "ap.Delete") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def inbox_create(self, as_actor: "ap.Person", activity: "ap.Create") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def inbox_delete(self, as_actor: "ap.Person", activity: "ap.Delete") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def outbox_is_blocked(self, as_actor: "ap.Person", actor_id: str) -> bool:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def inbox_new(self, as_actor: "ap.Person", activity: "ap.BaseActivity") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def outbox_new(self, as_actor: "ap.Person", activity: "ap.BaseActivity") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def new_follower(self, as_actor: "ap.Person", follow: "ap.Follow") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def new_following(self, as_actor: "ap.Person", follow: "ap.Follow") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def undo_new_follower(self, as_actor: "ap.Person", follow: "ap.Follow") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def undo_new_following(self, as_actor: "ap.Person", follow: "ap.Follow") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def inbox_update(self, as_actor: "ap.Person", activity: "ap.Update") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def outbox_update(self, as_actor: "ap.Person", activity: "ap.Update") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def inbox_like(self, as_actor: "ap.Person", activity: "ap.Like") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def inbox_undo_like(self, as_actor: "ap.Person", activity: "ap.Like") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def outbox_like(self, as_actor: "ap.Person", activity: "ap.Like") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def outbox_undo_like(self, as_actor: "ap.Person", activity: "ap.Like") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def inbox_announce(self, as_actor: "ap.Person", activity: "ap.Announce") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def inbox_undo_announce(
|
||||
self, as_actor: "ap.Person", activity: "ap.Announce"
|
||||
) -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def outbox_announce(self, as_actor: "ap.Person", activity: "ap.Announce") -> None:
|
||||
pass # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def outbox_undo_announce(
|
||||
self, as_actor: "ap.Person", activity: "ap.Announce"
|
||||
) -> None:
|
||||
pass # pragma: no cover
|
||||
|
|
Ładowanie…
Reference in New Issue