forked from mirrors/bookwyrm
Compare commits
2 commits
main
...
timeline-i
Author | SHA1 | Date | |
---|---|---|---|
|
fa15218980 | ||
|
cf17c3e793 |
1 changed files with 4 additions and 0 deletions
|
@ -303,6 +303,10 @@ def add_status_on_create_command(sender, instance, created):
|
||||||
) or instance.created_date < instance.published_date - timedelta(days=1):
|
) or instance.created_date < instance.published_date - timedelta(days=1):
|
||||||
priority = LOW
|
priority = LOW
|
||||||
|
|
||||||
|
# don't add imported statuses to feeds
|
||||||
|
if models.ImportItem.objects.filter(linked_review=instance).exists():
|
||||||
|
return
|
||||||
|
|
||||||
add_status_task.apply_async(
|
add_status_task.apply_async(
|
||||||
args=(instance.id,),
|
args=(instance.id,),
|
||||||
kwargs={"increment_unread": created},
|
kwargs={"increment_unread": created},
|
||||||
|
|
Loading…
Reference in a new issue