This commit is contained in:
Daniel 2024-12-19 23:51:12 +08:00
parent a3fec2c9e8
commit 77fa89010f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 37 additions and 2 deletions

View file

@ -961,6 +961,12 @@ func MissingAssets() (ret []string) {
}
func emojisInTree(tree *parse.Tree) (ret []string) {
if icon := tree.Root.IALAttr("icon"); "" != icon {
if !strings.Contains(icon, "://") && !strings.HasPrefix(icon, "api/icon/") {
ret = append(ret, "/emojis/"+icon)
}
}
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
if !entering {
return ast.WalkContinue