mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
Fix delete for unknown object
This commit is contained in:
parent
d3b7f6ccbb
commit
1e8a4f933e
1 changed files with 1 additions and 1 deletions
|
@ -842,7 +842,7 @@ async def _handle_delete_activity(
|
|||
relates_to_inbox_object: models.InboxObject | None,
|
||||
forwarded_by_actor: models.Actor | None,
|
||||
) -> None:
|
||||
ap_object_to_delete: models.InboxObject | models.Actor | None
|
||||
ap_object_to_delete: models.InboxObject | models.Actor | None = None
|
||||
if relates_to_inbox_object:
|
||||
ap_object_to_delete = relates_to_inbox_object
|
||||
elif delete_activity.activity_object_ap_id:
|
||||
|
|
Loading…
Reference in a new issue