@meltwater/conversations-api-services 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -12,7 +12,8 @@ export function isMention({
|
|
|
12
12
|
authors:[
|
|
13
13
|
{
|
|
14
14
|
authorInfo:{
|
|
15
|
-
externalId: authorExternalId
|
|
15
|
+
externalId: authorExternalId,
|
|
16
|
+
handle: authorHandle,
|
|
16
17
|
} = {}
|
|
17
18
|
} = {}
|
|
18
19
|
] = [{}],
|
|
@@ -29,7 +30,9 @@ export function isMention({
|
|
|
29
30
|
} = {},
|
|
30
31
|
providerSpecific,
|
|
31
32
|
}, credential){
|
|
32
|
-
|
|
33
|
+
if(socialOriginType == 'twitter' && discussionType != 'og'){
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
33
36
|
// if inReplyToExternalId is the same as the credential's social_account_id, then it's not a mention
|
|
34
37
|
if(inReplyToExternalId && credential.social_account_id &&
|
|
35
38
|
(
|
|
@@ -38,6 +41,14 @@ export function isMention({
|
|
|
38
41
|
){
|
|
39
42
|
return false;
|
|
40
43
|
}
|
|
44
|
+
|
|
45
|
+
if(authorExternalId && credential.social_account_id &&
|
|
46
|
+
(
|
|
47
|
+
authorExternalId === credential.social_account_id) ||
|
|
48
|
+
authorHandle === credential.username
|
|
49
|
+
){
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
41
52
|
|
|
42
53
|
let retIsMention =
|
|
43
54
|
(['og', 're', 'qt'].includes(discussionType) ||
|