Adds tests for boosts in activitystreams

This commit is contained in:
Mouse Reeve
2021-08-23 10:36:23 -07:00
parent f284eebece
commit 9c21f4d8e6
2 changed files with 65 additions and 1 deletions

View File

@ -273,7 +273,7 @@ def add_status_on_create(sender, instance, created, *args, **kwargs):
created_date__lt=instance.created_date,
)
for stream in streams.values():
audience = streams.get_stores_for_object(instance)
audience = stream.get_stores_for_object(instance)
stream.remove_object_from_related_stores(boosted, stores=audience)
for status in old_versions:
stream.remove_object_from_related_stores(status, stores=audience)