From 235e877b3dde3cae111e79da0de6dcad087378c6 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 14 Jul 2022 11:00:05 -0700 Subject: [PATCH] Reverse order of notification users lists Should show newest first --- bookwyrm/models/notification.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bookwyrm/models/notification.py b/bookwyrm/models/notification.py index 921174924..b0b75a169 100644 --- a/bookwyrm/models/notification.py +++ b/bookwyrm/models/notification.py @@ -300,8 +300,10 @@ def notify_user_on_follow(sender, instance, created, *args, **kwargs): notification.read = False notification.save() else: + # Only group unread follows Notification.notify( instance.user_object, instance.user_subject, notification_type=Notification.FOLLOW, + read=False, )