Show suggested users when the feed is empty

This commit is contained in:
Mouse Reeve
2021-05-22 11:20:39 -07:00
parent f98576bc25
commit 0044dc6587
5 changed files with 43 additions and 31 deletions

View File

@ -66,6 +66,8 @@ class SuggestedUsers(RedisStore):
def rerank_user_suggestions(self, user):
"""update the ranks of the follows suggested to a user"""
if not user.local:
raise ValueError('Attempting to create suggestions for remote user: ', user.id)
self.populate_store(self.store_id(user))
def get_suggestions(self, user):