Added filter reactions settings; Change allowed emoji filter; Emoji module correct commit

This commit is contained in:
localhost_frssoft 2022-10-20 02:15:50 +03:00
parent 9cdac3e623
commit c5d552e7d8
11 changed files with 29 additions and 5 deletions

View file

@ -14,6 +14,7 @@ type Context struct {
CSRFToken string
UserID string
AntiDopamineMode bool
AddReactionsFilter string
UserCSS string
Referrer string
}

View file

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