Show unread status reload link

This commit is contained in:
Mouse Reeve
2021-03-23 12:52:38 -07:00
parent 28651bd804
commit b8cd1d5bce
7 changed files with 34 additions and 21 deletions

View File

@ -70,6 +70,10 @@ class ActivityStream(ABC):
.order_by("-published_date")
)
def get_unread_count(self, user):
""" get the unread status count for this user's feed """
return int(r.get(self.unread_id(user)))
def populate_stream(self, user):
""" go from zero to a timeline """
pipeline = r.pipeline()