Merge pull request #1382 from bookwyrm-social/boosts-fix

Fixes boosts task
This commit is contained in:
Mouse Reeve 2021-09-08 09:22:34 -07:00 committed by GitHub
commit 6b1cd04aac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -469,7 +469,7 @@ def handle_boost_task(boost_id):
old_versions = models.Boost.objects.filter( old_versions = models.Boost.objects.filter(
boosted_status__id=boosted.id, boosted_status__id=boosted.id,
created_date__lt=instance.created_date, created_date__lt=instance.created_date,
).values_list("id", flat=True) )
for stream in streams.values(): for stream in streams.values():
audience = stream.get_stores_for_object(instance) audience = stream.get_stores_for_object(instance)