Fix issues related to AntiDopamine mode
[bloat] / service / service.go
index cc59cb6e3254230099b0c04a98783567e1f79038..c56d96ac4245184e96fb64931c58a305acf68305 100644 (file)
@@ -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
        }