feat: cập nhật lại cache image

This commit is contained in:
ngthanhvu
2026-08-01 12:26:43 -04:00
parent 76b56e55c4
commit 6619cae6cc
5 changed files with 43 additions and 49 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ function handleVote(replyId: number, vote: number) {
function formatMentions(content: string) {
let html = content.replace(/@(\S+)/g, '<span class="text-cinek-400 font-medium">@$1</span>')
html = html.replace(/!\[GIF\]\((https?:\/\/[^\s)]+)\)/g, '<img src="$1" alt="GIF" class="max-w-[150px] rounded-lg mt-1" loading="lazy" />')
html = html.replace(/!\[GIF\]\((https?:\/\/[^\s)]+)\)/g, '<img src="/api/image-proxy?url=$1" alt="GIF" class="max-w-[150px] rounded-lg mt-1" loading="lazy" />')
return html
}
</script>