Skip to content

Commit 8368844

Browse files
authored
Add forge emojies (#16296)
* codeberg :codeberg: * gitlab :gitlab: * git :git: * github :github: * gogs :gogs:
1 parent 92328a3 commit 8368844

File tree

8 files changed

+5
-5
lines changed

8 files changed

+5
-5
lines changed

custom/conf/app.example.ini

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

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

Lines changed: 2 additions & 2 deletions
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**: 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.
@@ -392,7 +392,7 @@ relation to port exhaustion.
392392
- `MAX_ATTEMPTS`: **10**: Maximum number of attempts to create the wrapped queue
393393
- `TIMEOUT`: **GRACEFUL_HAMMER_TIME + 30s**: Timeout the creation of the wrapped queue if it takes longer than this to create.
394394
- Queues by default come with a dynamically scaling worker pool. The following settings configure this:
395-
- `WORKERS`: **0** (v1.14 and before: **1**): Number of initial workers for the queue.
395+
- `WORKERS`: **0** (v1.14 and before: **1**): Number of initial workers for the queue.
396396
- `MAX_WORKERS`: **10**: Maximum number of worker go-routines for the queue.
397397
- `BLOCK_TIMEOUT`: **1s**: If the queue blocks for this time, boost the number of workers - the `BLOCK_TIMEOUT` will then be doubled before boosting again whilst the boost is ongoing.
398398
- `BOOST_TIMEOUT`: **5m**: Boost workers will timeout after this long.

modules/setting/setting.go

Lines changed: 2 additions & 2 deletions
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`},
262-
CustomEmojisMap: map[string]string{"gitea": ":gitea:"},
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/codeberg.png

8.12 KB
Loading

public/img/emoji/git.png

4.89 KB
Loading

public/img/emoji/github.png

13.8 KB
Loading

public/img/emoji/gitlab.png

6.71 KB
Loading

public/img/emoji/gogs.png

11.5 KB
Loading

0 commit comments

Comments
 (0)