Fix notification count
authorr <r@freesoftwareextremist.com>
Wed, 15 Jan 2020 06:01:36 +0000 (06:01 +0000)
committerr <r@freesoftwareextremist.com>
Wed, 15 Jan 2020 06:01:36 +0000 (06:01 +0000)
service/service.go

index 0c01dce7d2868c0bae2fc71de38b90d96a56ddbb..bfacf80a64ea8857da1d1d2eef5c3f9925a9e1e6 100644 (file)
@@ -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++
                }
        }