More bugfixes

This commit is contained in:
Thomas Sileo 2018-07-29 16:58:25 +02:00
parent 5da27d9820
commit 1d1f8e7cf5

View file

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