Tweak the Delete side effect

pull/1/head
Thomas Sileo 2018-06-18 20:27:19 +02:00
rodzic 24d2bae53b
commit c430c5e775
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -836,7 +836,7 @@ class Delete(BaseActivity):
obj = self._get_actual_object()
actor = self.get_actor()
if actor.id != obj.get_actor().id:
if obj.ACTIVITY_TYPE != ActivityType.TOMBSTONE and actor.id != obj.get_actor().id:
raise BadActivityError(f"{actor!r} cannot delete {obj!r}")
def _process_from_inbox(self, as_actor: "Person") -> None: