Skip to content

Commit ff23648

Browse files
committed
add :git: :github: :gogs:
1 parent a26e840 commit ff23648

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed

custom/conf/app.example.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ PATH =
10371037
;; Additional Emojis not defined in the utf8 standard
10381038
;; By default we support gitea (:gitea:), to add more copy them to public/img/emoji/emoji_name.png and add it to this config.
10391039
;; Dont mistake it for Reactions.
1040-
;CUSTOM_EMOJIS = gitea, codeberg, gitlab
1040+
;CUSTOM_EMOJIS = gitea, codeberg, gitlab, git, github, gogs
10411041
;;
10421042
;; Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
10431043
;DEFAULT_SHOW_FULL_NAME = false

docs/content/doc/advanced/config-cheat-sheet.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a
181181
- `REACTIONS`: All available reactions users can choose on issues/prs and comments
182182
Values can be emoji alias (:smile:) or a unicode emoji.
183183
For custom reactions, add a tightly cropped square image to public/img/emoji/reaction_name.png
184-
- `CUSTOM_EMOJIS`: **gitea, codeberg**: Additional Emojis not defined in the utf8 standard.
184+
- `CUSTOM_EMOJIS`: **gitea, codeberg, gitlab, git, github, gogs**: Additional Emojis not defined in the utf8 standard.
185185
By default we support gitea (:gitea:), to add more copy them to public/img/emoji/emoji_name.png and
186186
add it to this config.
187187
- `DEFAULT_SHOW_FULL_NAME`: **false**: Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.

modules/setting/setting.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ var (
258258
DefaultTheme: `gitea`,
259259
Themes: []string{`gitea`, `arc-green`},
260260
Reactions: []string{`+1`, `-1`, `laugh`, `hooray`, `confused`, `heart`, `rocket`, `eyes`},
261-
CustomEmojis: []string{`gitea`, `codeberg`, `gitlab`},
262-
CustomEmojisMap: map[string]string{"gitea": ":gitea:", "codeberg": ":codeberg:", "gitlab": ":gitlab:"},
261+
CustomEmojis: []string{`git`, `gitea`, `codeberg`, `gitlab`, `github`, `gogs`},
262+
CustomEmojisMap: map[string]string{"git": ":git:", "gitea": ":gitea:", "codeberg": ":codeberg:", "gitlab": ":gitlab:", "github": ":github:", "gogs": ":gogs:"},
263263
Notification: struct {
264264
MinTimeout time.Duration
265265
TimeoutStep time.Duration

public/img/emoji/git.png

4.89 KB
Loading

public/img/emoji/github.png

13.8 KB
Loading

public/img/emoji/gogs.png

11.5 KB
Loading

0 commit comments

Comments
 (0)