Get messages from last 7 days, not just unread. fix #3331
This commit is contained in:
1 parent
6d048e0003
commit
c82b1f51e3
1 file changed
+3
-3
@@ -258,14 +258,14 @@ class CoreNotifier(Notification):
|
||||
|
||||
messages = []
|
||||
|
||||
# Get unread
|
||||
# Get last message
|
||||
if init:
|
||||
db = get_db()
|
||||
|
||||
notifications = db.all('notification_unread', with_doc = True)
|
||||
notifications = db.all('notification', with_doc = True)
|
||||
|
||||
for n in notifications:
|
||||
if n['doc'].get('time') > (time.time() - 259200):
|
||||
if n['doc'].get('time') > (time.time() - 604800):
|
||||
messages.append(n['doc'])
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user