Show unread status reload link
This commit is contained in:
parent
28651bd804
commit
b8cd1d5bce
7 changed files with 34 additions and 21 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue