From 7a59d010f6d07bcfb074e60f1f06b002c4bf7b74 Mon Sep 17 00:00:00 2001 From: r Date: Thu, 3 Sep 2020 06:26:32 +0000 Subject: Fix issues related to AntiDopamine mode - Add AntiDopamine mode description - Update fluoride to support AntiDopamine mode --- service/service.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'service') diff --git a/service/service.go b/service/service.go index cc59cb6..c56d96a 100644 --- a/service/service.go +++ b/service/service.go @@ -410,12 +410,11 @@ func (svc *service) ServeNotificationPage(c *model.Client, maxID string, Limit: 20, } - dope := c.Session.Settings.AntiDopamineMode - if dope { - excludes = append(excludes, "follow", "favourite", "reblog") + if c.Session.Settings.AntiDopamineMode { + excludes = []string{"follow", "favourite", "reblog"} } - notifications, err := c.GetNotifications(ctx, &pg, excludes...) + notifications, err := c.GetNotifications(ctx, &pg, excludes) if err != nil { return } -- cgit v1.2.3