Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/13095

Vanessaad18ec75196f
diff --git a/app/src/emoji/index.ts b/app/src/emoji/index.ts
index f220bbde92..8d68101956 100644
--- a/app/src/emoji/index.ts
+++ b/app/src/emoji/index.ts
@@ -26,10 +26,10 @@ export const unicode2Emoji = (unicode: string, className = "", needSpan = false,
return "";
}
let emoji = "";
- if (unicode.indexOf(".") > -1) {
- emoji = `<img class="${className}" ${lazy ? "data-" : ""}src="/emojis/${unicode}"/>`;
- } else if (unicode.startsWith("api/icon/getDynamicIcon")) {
+ if (unicode.startsWith("api/icon/getDynamicIcon")) {
emoji = `<img class="${className}" ${lazy ? "data-" : ""}src="/${unicode}"/>`;
+ } else if (unicode.indexOf(".") > -1) {
+ emoji = `<img class="${className}" ${lazy ? "data-" : ""}src="/emojis/${unicode}"/>`;
} else {
try {
unicode.split("-").forEach(item => {