forked from forks/microblog.pub
More bugfixes
This commit is contained in:
parent
5da27d9820
commit
1d1f8e7cf5
1 changed files with 2 additions and 1 deletions
3
tasks.py
3
tasks.py
|
@ -275,13 +275,14 @@ def post_to_inbox(activity: ap.BaseActivity) -> None:
|
||||||
log.info(
|
log.info(
|
||||||
f"actor {actor!r} is blocked, dropping the received activity {activity!r}"
|
f"actor {actor!r} is blocked, dropping the received activity {activity!r}"
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
if back.inbox_check_duplicate(MY_PERSON, activity.id):
|
if back.inbox_check_duplicate(MY_PERSON, activity.id):
|
||||||
# The activity is already in the inbox
|
# The activity is already in the inbox
|
||||||
log.info(f"received duplicate activity {activity!r}, dropping it")
|
log.info(f"received duplicate activity {activity!r}, dropping it")
|
||||||
|
|
||||||
back.save(Box.INBOX, activity)
|
back.save(Box.INBOX, activity)
|
||||||
|
log.info(f"spawning task for {activity!r}")
|
||||||
finish_post_to_inbox.delay(activity.id)
|
finish_post_to_inbox.delay(activity.id)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue