kopia lustrzana https://github.com/tsileo/little-boxes
Fix formatting
rodzic
f228f36b55
commit
28dc4a12a2
|
@ -797,10 +797,7 @@ class Announce(BaseActivity):
|
||||||
BACKEND.outbox_undo_announce(as_actor, self)
|
BACKEND.outbox_undo_announce(as_actor, self)
|
||||||
|
|
||||||
def build_undo(self) -> BaseActivity:
|
def build_undo(self) -> BaseActivity:
|
||||||
return Undo(
|
return Undo(actor=self.get_actor().id, object=self.to_dict(embed=True))
|
||||||
actor=self.get_actor().id,
|
|
||||||
object=self.to_dict(embed=True),
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class Delete(BaseActivity):
|
class Delete(BaseActivity):
|
||||||
|
|
|
@ -83,7 +83,9 @@ class Backend(abc.ABC):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def inbox_undo_announce(self, as_actor: "ap.Person", activity: "ap.Announce") -> None:
|
def inbox_undo_announce(
|
||||||
|
self, as_actor: "ap.Person", activity: "ap.Announce"
|
||||||
|
) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
|
|
Ładowanie…
Reference in New Issue