mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-06 03:48:45 +00:00
Added optional filter for emojis on instance
This commit is contained in:
parent
c5d552e7d8
commit
cbbebe6b15
6 changed files with 14 additions and 1 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,
|
||||
InstanceEmojiFilter: sett.InstanceEmojiFilter,
|
||||
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"
|
||||
instanceEmojiFilter := c.r.FormValue("instance-emoji-filter")
|
||||
addReactionsFilter := c.r.FormValue("pleroma-reactions-filter")
|
||||
css := c.r.FormValue("css")
|
||||
|
||||
|
@ -534,6 +535,7 @@ func NewHandler(s *service, logger *log.Logger, staticDir string) http.Handler {
|
|||
DarkMode: darkMode,
|
||||
AntiDopamineMode: antiDopamineMode,
|
||||
HideUnsupportedNotifs: hideUnsupportedNotifs,
|
||||
InstanceEmojiFilter: instanceEmojiFilter,
|
||||
AddReactionsFilter: addReactionsFilter,
|
||||
CSS: css,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue