@meltwater/conversations-api-services 1.0.43 → 1.0.44

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.
@@ -143,7 +143,7 @@ async function publish(token, discussionType, mediaId, inReplyToId, socialAccoun
143
143
  actor: socialAccountId,
144
144
  message: {
145
145
  attributes: attributes,
146
- text: textWithoutMentions // Replace mention spans with the mention text
146
+ text: textWithoutMentions || '' // Replace mention spans with the mention text
147
147
  }
148
148
  };
149
149
  if (discussionType === 're') {
@@ -123,7 +123,7 @@ async function publish(token, discussionType, mediaId, inReplyToId, socialAccoun
123
123
  actor: socialAccountId,
124
124
  message: {
125
125
  attributes: attributes,
126
- text: textWithoutMentions // Replace mention spans with the mention text
126
+ text: textWithoutMentions || '' // Replace mention spans with the mention text
127
127
  }
128
128
  };
129
129
  if (discussionType === 're') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltwater/conversations-api-services",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
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",
@@ -154,7 +154,7 @@ async function publish(token,discussionType, mediaId,inReplyToId,socialAccountId
154
154
  actor: socialAccountId,
155
155
  message: {
156
156
  attributes: attributes,
157
- text: textWithoutMentions // Replace mention spans with the mention text
157
+ text: textWithoutMentions || '' // Replace mention spans with the mention text
158
158
  }
159
159
  };
160
160
  if (discussionType === 're') {