summaryrefslogtreecommitdiffstats
path: root/modules/templates
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-08-08 16:29:14 +0800
committerGitHub <noreply@github.com>2023-08-08 08:29:14 +0000
commit71d253f42e6f7d73fdaad5039df58893c336a0e6 (patch)
tree66d336ea0c259ca2babfbe1c862e7904b65a1183 /modules/templates
parent78b2a1cc3689e1b7555bd874763eea7eb28982f9 (diff)
downloadgitea-71d253f42e6f7d73fdaad5039df58893c336a0e6.tar.gz
gitea-71d253f42e6f7d73fdaad5039df58893c336a0e6.zip
Remove unnecessary template helper DisableGravatar (#26386)
And one "AllowedUserVisibilityModes" was missing, add it. Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'modules/templates')
-rw-r--r--modules/templates/helper.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 30ca767cae..d9c297411a 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -5,7 +5,6 @@
package templates
import (
- "context"
"fmt"
"html"
"html/template"
@@ -13,7 +12,6 @@ import (
"strings"
"time"
- system_model "code.gitea.io/gitea/models/system"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/emoji"
"code.gitea.io/gitea/modules/markup"
@@ -104,9 +102,6 @@ func NewFuncMap() template.FuncMap {
"AssetVersion": func() string {
return setting.AssetVersion
},
- "DisableGravatar": func(ctx context.Context) bool {
- return system_model.GetSettingWithCacheBool(ctx, system_model.KeyPictureDisableGravatar)
- },
"DefaultShowFullName": func() bool {
return setting.UI.DefaultShowFullName
},