Improve emoji search (#11768)

Co-authored-by: mpcjazz <mail@mpcjazz.com>
This commit is contained in:
mpcjazz 2024-06-20 12:39:16 +09:00 committed by GitHub
parent 47d79042fd
commit 0b51219f50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 11643 additions and 9494 deletions

View file

@ -117,6 +117,7 @@ func getEmojiConf(c *gin.Context) {
"id": "custom",
"title": "Custom",
"title_zh_cn": "自定义",
"title_ja_jp": "カスタム",
}
items := []map[string]interface{}{}
custom["items"] = items
@ -173,6 +174,7 @@ func addCustomEmoji(name string, items *[]map[string]interface{}) {
"unicode": name,
"description": nameWithoutExt,
"description_zh_cn": nameWithoutExt,
"description_ja_jp": nameWithoutExt,
"keywords": nameWithoutExt,
}
*items = append(*items, emoji)