1
0
Fork 0

Merge pull request #1020 from bookwyrm-social/notification-color

Only make notification count red for mentions
This commit is contained in:
Mouse Reeve 2021-04-30 13:49:57 -07:00 committed by GitHub
commit 735ef369b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 3 deletions

View file

@ -10,7 +10,8 @@ def get_notification_count(request):
"""any notifications waiting?"""
return JsonResponse(
{
"count": request.user.notification_set.filter(read=False).count(),
"count": request.user.unread_notification_count,
"has_mentions": request.user.has_unread_mentions,
}
)