Fix issues related to AntiDopamine mode

- Add AntiDopamine mode description
- Update fluoride to support AntiDopamine mode
This commit is contained in:
r 2020-09-03 06:26:32 +00:00
parent 28695fb8e6
commit 7a59d010f6
7 changed files with 40 additions and 23 deletions

View 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
}