diff --git a/src/components/item.astro b/src/components/item.astro index 3f7076d..5d4b60d 100644 --- a/src/components/item.astro +++ b/src/components/item.astro @@ -20,7 +20,9 @@ const timeago = datetime.isBefore(dayjs().subtract(1, 'w')) ? datetime.format('H
{post.content.length > 0 && } diff --git a/src/lib/telegram/index.js b/src/lib/telegram/index.js index 7904617..100ec69 100644 --- a/src/lib/telegram/index.js +++ b/src/lib/telegram/index.js @@ -100,9 +100,9 @@ function getReply($, item, { channel }) { } function modifyHTMLContent($, content, { index } = {}) { - $(content).find('.emoji')?.attr('style', '') + $(content).find('.emoji')?.removeAttr('style') $(content).find('a')?.each((_index, a) => { - $(a)?.attr('title', $(a)?.text())?.attr('onclick', '') + $(a)?.attr('title', $(a)?.text())?.removeAttr('onclick') }) $(content).find('tg-spoiler')?.each((_index, spoiler) => { const id = `spoiler-${index}-${_index}`