aboutsummaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-09-03 06:26:32 +0000
committerr <r@freesoftwareextremist.com>2020-09-03 06:29:03 +0000
commit7a59d010f6d07bcfb074e60f1f06b002c4bf7b74 (patch)
treee39adf5e43b74a2c2c66e7e5b38592108b6545f3 /service
parent28695fb8e6b299389347fc8c42f7dc3923b42f24 (diff)
downloadbloat-7a59d010f6d07bcfb074e60f1f06b002c4bf7b74.tar.gz
bloat-7a59d010f6d07bcfb074e60f1f06b002c4bf7b74.zip
Fix issues related to AntiDopamine mode
- Add AntiDopamine mode description - Update fluoride to support AntiDopamine mode
Diffstat (limited to 'service')
-rw-r--r--service/service.go7
1 files changed, 3 insertions, 4 deletions
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
}