mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 00:26:33 +00:00
Don't add imported reviews to timelines
Generally they're so backdated that they don't add, and they put too much load on the instance.
This commit is contained in:
parent
1a2a5b8bd2
commit
0354eb9828
1 changed files with 4 additions and 0 deletions
|
@ -318,6 +318,10 @@ def add_status_on_create_command(sender, instance, created):
|
|||
if instance.published_date < timezone.now() - timedelta(
|
||||
days=1
|
||||
) or instance.created_date < instance.published_date - timedelta(days=1):
|
||||
# a backdated status from a local user is an import, don't add it
|
||||
if instance.user.local:
|
||||
return
|
||||
# an out of date remote status is a low priority but should be added
|
||||
priority = LOW
|
||||
|
||||
add_status_task.apply_async(
|
||||
|
|
Loading…
Reference in a new issue