|
@@ -156,8 +156,6 @@ chrome.runtime.onMessage.addListener((req, sender, sendResponse) => {
|
|
|
|
|
|
if (req.type == 'pre_repost') {
|
|
|
// 发送埋点
|
|
|
- console.log('getFollowStatus(req.data)', getFollowStatus(req.data))
|
|
|
-
|
|
|
let list = getFollowStatus(req.data)
|
|
|
log_pre_repost.names.forEach(item => {
|
|
|
list.forEach((item2) => {
|
|
@@ -239,7 +237,6 @@ const logPreRepost = () => {
|
|
|
} else if (state.page_type == '原始链接') {
|
|
|
params.rootTwitterName = state.detail.postUserInfo.nickName
|
|
|
}
|
|
|
-
|
|
|
let names = []
|
|
|
if (state.detail.inviteUserInfo && (state.detail.inviteUserInfo.uid != global_userInfo.uid)) {
|
|
|
// isFatherTwitterFans = inviteUserInfo.nickName 的关注关系
|
|
@@ -259,16 +256,14 @@ const logPreRepost = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- if (names.length > 0) {
|
|
|
- sendChromeTabMessage({
|
|
|
- actionType: "IFRAME_API_GET_TWEET_USER_FOLLOW_STATUS",
|
|
|
- data: {
|
|
|
- userList: names,
|
|
|
- tweetId: state.tweetId
|
|
|
- },
|
|
|
- type: 'pre_repost'
|
|
|
- })
|
|
|
- }
|
|
|
+ sendChromeTabMessage({
|
|
|
+ actionType: "IFRAME_API_GET_TWEET_USER_FOLLOW_STATUS",
|
|
|
+ data: {
|
|
|
+ userList: names,
|
|
|
+ tweetId: state.tweetId
|
|
|
+ },
|
|
|
+ type: 'pre_repost'
|
|
|
+ })
|
|
|
log_pre_repost.params = params
|
|
|
log_pre_repost.names = names
|
|
|
}
|