Skip to content

Commit 5a39c40

Browse files
committed
(refs #7) Generate emoji html with full url
1 parent a97f698 commit 5a39c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/gitbucket/emoji/EmojiUtil.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ object EmojiUtil {
899899
emojiPattern replaceAllIn(text, e => {
900900
val emoji = e.group(0) replaceAll(":", "")
901901
if (!emojis.contains(emoji)) s":$emoji:"
902-
else s"""<img src="${context.path}/plugin-assets/emoji/${emoji}.png" alt=":$emoji:" class="emoji" />"""
902+
else s"""<img src="${context.baseUrl}/plugin-assets/emoji/${emoji}.png" alt=":$emoji:" class="emoji" />"""
903903
})
904904

905905
}

0 commit comments

Comments
 (0)