forked from mirrors/bookwyrm
Prioritize adding statuses to strems
having to wait to see statuses feels very weird and janky
This commit is contained in:
parent
9a53808eeb
commit
85cc46184e
1 changed files with 2 additions and 2 deletions
|
@ -432,9 +432,9 @@ def remove_status_task(status_ids):
|
|||
stream.remove_object_from_related_stores(status)
|
||||
|
||||
|
||||
@app.task(queue="medium_priority")
|
||||
@app.task(queue="high_priority")
|
||||
def add_status_task(status_id, increment_unread=False):
|
||||
"""remove a status from any stream it might be in"""
|
||||
"""add a status to any stream it should be in"""
|
||||
status = models.Status.objects.get(id=status_id)
|
||||
for stream in streams.values():
|
||||
stream.add_status(status, increment_unread=increment_unread)
|
||||
|
|
Loading…
Reference in a new issue