mirror of
https://github.com/ngthanhvu/kr-phim.git
synced 2026-08-10 14:07:47 +00:00
feat: cập nhật lại cache image
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user