pull/1/head
Thomas Sileo 2018-06-15 00:00:54 +02:00
rodzic f228f36b55
commit 28dc4a12a2
2 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -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):

Wyświetl plik

@ -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