Merge branch 'main' into production

This commit is contained in:
Mouse Reeve 2021-09-09 17:38:24 -07:00
commit 4c5f5d90ba

View file

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