瀏覽代碼

[bug][发帖未屏蔽 #DNFT 和 ↓]

zhangwei 2 年之前
父節點
當前提交
ed444c7e77
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/logic/content/twitter.js

+ 1 - 1
src/logic/content/twitter.js

@@ -1319,7 +1319,7 @@ function publishNFTTweetEvent({ groupId, postId, srcContent }) {
             let arr = srcContent.split(' ') || []
 
             arr.forEach((item) => {
-                if (textContent.includes(item)) {
+                if (textContent.includes(item) || item.includes('#DNFT') || item.includes('⬇️')) {
                     textContent = textContent.replaceAll(item, '')
                 }
             })