diff --git a/bookwyrm/activitystreams.py b/bookwyrm/activitystreams.py index cda634b4c..9586edcbc 100644 --- a/bookwyrm/activitystreams.py +++ b/bookwyrm/activitystreams.py @@ -150,6 +150,7 @@ class ActivityStream(RedisStore): return [user.id for user in self._get_audience(status)] def get_stores_for_object(self, obj): + """the stores that an object belongs in""" return [self.stream_id(user_id) for user_id in self.get_audience(obj)] def get_statuses_for_user(self, user): # pylint: disable=no-self-use diff --git a/bookwyrm/lists_stream.py b/bookwyrm/lists_stream.py index e19e16566..e0618dc1b 100644 --- a/bookwyrm/lists_stream.py +++ b/bookwyrm/lists_stream.py @@ -97,6 +97,7 @@ class ListsStream(RedisStore): return audience.distinct() def get_stores_for_object(self, obj): + """the stores that an object belongs in""" return [self.stream_id(u) for u in self.get_audience(obj)] def get_lists_for_user(self, user): # pylint: disable=no-self-use diff --git a/bookwyrm/redis_store.py b/bookwyrm/redis_store.py index 8904d123a..80bce4df3 100644 --- a/bookwyrm/redis_store.py +++ b/bookwyrm/redis_store.py @@ -82,10 +82,6 @@ class RedisStore(ABC): def get_objects_for_store(self, store): """a queryset of what should go in a store, used for populating it""" - @abstractmethod - def get_stores_for_object(self, obj): - """the stores that an object belongs in""" - @abstractmethod def get_rank(self, obj): """how to rank an object""" diff --git a/bookwyrm/suggested_users.py b/bookwyrm/suggested_users.py index 990bec11d..49edc83e9 100644 --- a/bookwyrm/suggested_users.py +++ b/bookwyrm/suggested_users.py @@ -49,6 +49,7 @@ class SuggestedUsers(RedisStore): ) def get_stores_for_object(self, obj): + """the stores that an object belongs in""" return [self.store_id(u) for u in self.get_users_for_object(obj)] def get_users_for_object(self, obj): # pylint: disable=no-self-use