瀏覽代碼

[edit][过滤吞字]

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

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

@@ -1352,19 +1352,14 @@ export const publishNFTTweetPost = ({ postId, srcContent, groupId }) => {
     let inputEle = document.querySelector('div[contenteditable="true"]');
     let inputEle = document.querySelector('div[contenteditable="true"]');
     let textContent = inputEle.innerText
     let textContent = inputEle.innerText
     let arr = srcContent.split(' ') || []
     let arr = srcContent.split(' ') || []
-    let text_content_arr = textContent.split(' ') || []
     arr.forEach((item) => {
     arr.forEach((item) => {
         if (textContent.includes(item)) {
         if (textContent.includes(item)) {
             textContent = textContent.replaceAll(item, '')
             textContent = textContent.replaceAll(item, '')
         }
         }
     })
     })
-    text_content_arr.forEach((item) => {
-        if (item.includes('#DNFT') || item.includes('⬇️')) {
-            textContent = textContent.replaceAll(item, '')
-        }
-    })
     textContent = textContent.replaceAll('#DNFT', '')
     textContent = textContent.replaceAll('#DNFT', '')
     textContent = textContent.replaceAll('⬇️', '')
     textContent = textContent.replaceAll('⬇️', '')
+    textContent = textContent.replaceAll('Join Now:', '')
 
 
     let formData = {
     let formData = {
         groupId,
         groupId,