From 771df7bd4c042d39042e86fd189e3b63e3d5b8e2 Mon Sep 17 00:00:00 2001 From: notofoe <43095406+notofoe@users.noreply.github.com> Date: Sat, 8 Aug 2020 01:04:33 +0800 Subject: [PATCH] fix: mastodon rm html filter --- lib/routes/mastodon/utils.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/routes/mastodon/utils.js b/lib/routes/mastodon/utils.js index 1c81e6da7..1578c5137 100644 --- a/lib/routes/mastodon/utils.js +++ b/lib/routes/mastodon/utils.js @@ -1,12 +1,6 @@ const ProcessFeed = (data) => data.map((item) => { - const content = item.content - ? item.content - .replace(/|<\/span.*?>/gm, '') - .replace(/<(?:.|\n)*?>/gm, '\n') - .split('\n') - .filter((s) => s !== '')[0] - : ''; + const content = item.content ? item.content.replace(/|<\/span.*?>/gm, '') : ''; const mediaParse = (media_attachments) => media_attachments