nodebb-plugin-link-preview 2.0.12 → 2.0.13
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/library.js +2 -2
- package/package-lock.json +2 -2
- package/package.json +1 -1
package/library.js
CHANGED
|
@@ -203,11 +203,11 @@ async function process(content, { type, pid, tid, attachments }) {
|
|
|
203
203
|
// bust posts cache item
|
|
204
204
|
if (pid) {
|
|
205
205
|
const cache = postsCache.getOrCreate();
|
|
206
|
-
const cacheKey = `${String(pid)}
|
|
206
|
+
const cacheKey = `${String(pid)}|${type}`;
|
|
207
207
|
cache.set(cacheKey, content);
|
|
208
208
|
|
|
209
209
|
// fire post edit event with mocked data
|
|
210
|
-
if (tid) {
|
|
210
|
+
if (type === 'default' && tid) {
|
|
211
211
|
websockets.in(`topic_${tid}`).emit('event:post_edited', {
|
|
212
212
|
post: {
|
|
213
213
|
tid,
|
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-plugin-link-preview",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "nodebb-plugin-link-preview",
|
|
9
|
-
"version": "2.0.
|
|
9
|
+
"version": "2.0.13",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"cheerio": "^1.0.0-rc.12",
|