mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-04 10:58:48 +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
|
@ -14,6 +14,7 @@ type Context struct {
|
|||
CSRFToken string
|
||||
UserID string
|
||||
AntiDopamineMode bool
|
||||
AddReactionsFilter string
|
||||
UserCSS string
|
||||
Referrer string
|
||||
}
|
||||
|
|
|
@ -43,8 +43,9 @@ type TemplateData struct {
|
|||
}
|
||||
|
||||
|
||||
func allowed_emoji_page(emoj string, codes ...string) bool {
|
||||
for _, code := range codes {
|
||||
func allowed_emoji_page(emoj string, codes string) bool {
|
||||
s := strings.Split(codes, " ")
|
||||
for _, code := range s {
|
||||
if strings.Contains(emoj, code) {
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue