mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-06 03:48:45 +00:00
Added filter reactions settings; Change allowed emoji filter; Emoji module correct commit
This commit is contained in:
parent
9cdac3e623
commit
c5d552e7d8
11 changed files with 29 additions and 5 deletions
|
@ -66,6 +66,7 @@ func (s *service) authenticate(c *client, sid string, csrf string, ref string, t
|
|||
UserID: c.s.UserID,
|
||||
AntiDopamineMode: sett.AntiDopamineMode,
|
||||
UserCSS: sett.CSS,
|
||||
AddReactionsFilter: sett.AddReactionsFilter,
|
||||
Referrer: ref,
|
||||
}
|
||||
}()
|
||||
|
|
|
@ -519,6 +519,7 @@ func NewHandler(s *service, logger *log.Logger, staticDir string) http.Handler {
|
|||
darkMode := c.r.FormValue("dark_mode") == "true"
|
||||
antiDopamineMode := c.r.FormValue("anti_dopamine_mode") == "true"
|
||||
hideUnsupportedNotifs := c.r.FormValue("hide_unsupported_notifs") == "true"
|
||||
addReactionsFilter := c.r.FormValue("pleroma-reactions-filter")
|
||||
css := c.r.FormValue("css")
|
||||
|
||||
settings := &model.Settings{
|
||||
|
@ -533,6 +534,7 @@ func NewHandler(s *service, logger *log.Logger, staticDir string) http.Handler {
|
|||
DarkMode: darkMode,
|
||||
AntiDopamineMode: antiDopamineMode,
|
||||
HideUnsupportedNotifs: hideUnsupportedNotifs,
|
||||
AddReactionsFilter: addReactionsFilter,
|
||||
CSS: css,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue