mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Fix the delete
This commit is contained in:
parent
7e94d15827
commit
cb0c0a56a7
1 changed files with 2 additions and 1 deletions
3
tasks.py
3
tasks.py
|
@ -339,6 +339,8 @@ def finish_post_to_outbox(self, iri: str) -> None:
|
||||||
activity = ap.fetch_remote_activity(iri)
|
activity = ap.fetch_remote_activity(iri)
|
||||||
log.info(f"activity={activity!r}")
|
log.info(f"activity={activity!r}")
|
||||||
|
|
||||||
|
recipients = activity.recipients()
|
||||||
|
|
||||||
if activity.has_type(ap.ActivityType.DELETE):
|
if activity.has_type(ap.ActivityType.DELETE):
|
||||||
back.outbox_delete(MY_PERSON, activity)
|
back.outbox_delete(MY_PERSON, activity)
|
||||||
elif activity.has_type(ap.ActivityType.UPDATE):
|
elif activity.has_type(ap.ActivityType.UPDATE):
|
||||||
|
@ -358,7 +360,6 @@ def finish_post_to_outbox(self, iri: str) -> None:
|
||||||
elif obj.has_type(ap.ActivityType.FOLLOW):
|
elif obj.has_type(ap.ActivityType.FOLLOW):
|
||||||
back.undo_new_following(MY_PERSON, obj)
|
back.undo_new_following(MY_PERSON, obj)
|
||||||
|
|
||||||
recipients = activity.recipients()
|
|
||||||
log.info(f"recipients={recipients}")
|
log.info(f"recipients={recipients}")
|
||||||
activity = ap.clean_activity(activity.to_dict())
|
activity = ap.clean_activity(activity.to_dict())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue