mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
Limit how many notifications are loaded
This commit is contained in:
parent
7449f34a61
commit
99efe6b290
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class Notifications(View):
|
||||||
notifications = request.user.notification_set.all().order_by("-created_date")
|
notifications = request.user.notification_set.all().order_by("-created_date")
|
||||||
unread = [n.id for n in notifications.filter(read=False)]
|
unread = [n.id for n in notifications.filter(read=False)]
|
||||||
data = {
|
data = {
|
||||||
"notifications": notifications,
|
"notifications": notifications[:50],
|
||||||
"unread": unread,
|
"unread": unread,
|
||||||
}
|
}
|
||||||
notifications.update(read=True)
|
notifications.update(read=True)
|
||||||
|
|
Loading…
Reference in a new issue