@meltwater/conversations-api-services 1.1.18 → 1.1.19
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.
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isMention = isMention;
|
|
7
|
-
var
|
|
7
|
+
var _externalIdHelpers = require("./externalId.helpers.js");
|
|
8
8
|
function isMention(document, credentialTemp) {
|
|
9
9
|
const hasMentionCredential = trimApplicationTagsAndCheckForMentionCredential(document);
|
|
10
10
|
|
|
@@ -46,7 +46,7 @@ function isMention(document, credentialTemp) {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
// override isMention if the document is a direct reply to the credential
|
|
49
|
-
if ((0,
|
|
49
|
+
if ((0, _externalIdHelpers.removePrefix)(document.metaData?.inReplyTo?.author?.externalId) === credential.socialAccountId) {
|
|
50
50
|
isMention = false;
|
|
51
51
|
}
|
|
52
52
|
return isMention;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meltwater/conversations-api-services",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.19",
|
|
4
4
|
"description": "Repository to contain all conversations api services shared across our services",
|
|
5
5
|
"main": "dist/cjs/data-access/index.js",
|
|
6
6
|
"module": "dist/esm/data-access/index.js",
|