From 5fdc7a59b2efc60e35f5421e28986c356810456e Mon Sep 17 00:00:00 2001 From: r Date: Wed, 15 Jan 2020 06:01:36 +0000 Subject: Fix notification count --- service/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service') diff --git a/service/service.go b/service/service.go index 0c01dce..bfacf80 100644 --- a/service/service.go +++ b/service/service.go @@ -450,7 +450,7 @@ func (svc *service) ServeNotificationPage(ctx context.Context, client io.Writer, notifications[i].Status.HideAccountInfo = true } } - if notifications[i].Pleroma != nil && notifications[i].Pleroma.IsSeen { + if notifications[i].Pleroma != nil && !notifications[i].Pleroma.IsSeen { unreadCount++ } } -- cgit v1.2.3