mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-05 03:18:44 +00:00
Fix issues related to AntiDopamine mode
- Add AntiDopamine mode description - Update fluoride to support AntiDopamine mode
This commit is contained in:
parent
28695fb8e6
commit
7a59d010f6
7 changed files with 40 additions and 23 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue