1
0
mirror of https://github.com/ihabunek/toot synced 2024-12-22 23:08:17 +01:00

Fix timeline generators when status is not set

This commit is contained in:
Ivan Habunek 2024-11-14 19:35:51 +01:00
parent 65f426fbcb
commit 84bfc3d5e1
No known key found for this signature in database
GPG Key ID: 01DB3DD0D824504C

View File

@ -430,12 +430,12 @@ def _timeline_generator(app, user, path, params=None):
def _notification_timeline_generator(app, user, path, params=None):
for batch in _timeline_generator(app, user, path, params):
yield [n["status"] for n in batch if n["status"]]
yield [n["status"] for n in batch if n.get("status")]
def _conversation_timeline_generator(app, user, path, params=None):
for batch in _timeline_generator(app, user, path, params):
yield [c["last_status"] for c in batch if c["last_status"]]
yield [c["last_status"] for c in batch if c.get("last_status")]
def home_timeline_generator(app, user, limit=20):