Compare commits

...

2 commits

Author SHA1 Message Date
Mouse Reeve
fa15218980 Fixes query syntax 2022-05-31 13:55:46 -07:00
Mouse Reeve
cf17c3e793 Don't add imported statuses to timeline
Imported items are creating a huge number of add_status_task tasks, and
really they don't need to go in to timelines at all.
2022-05-31 13:39:01 -07:00

View file

@ -303,6 +303,10 @@ def add_status_on_create_command(sender, instance, created):
) or instance.created_date < instance.published_date - timedelta(days=1):
priority = LOW
# don't add imported statuses to feeds
if models.ImportItem.objects.filter(linked_review=instance).exists():
return
add_status_task.apply_async(
args=(instance.id,),
kwargs={"increment_unread": created},