nodebb-plugin-link-preview 2.1.4 → 2.1.5
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 +3 -3
- package/package-lock.json +4889 -0
- package/package.json +1 -1
- package/static/templates/partials/link-preview/html.tpl +1 -1
package/library.js
CHANGED
|
@@ -240,7 +240,7 @@ async function process(content, { type, pid, tid, attachments }) {
|
|
|
240
240
|
}));
|
|
241
241
|
|
|
242
242
|
let content = $.html();
|
|
243
|
-
content += attachmentHtml ? `\n\n<div class="row">${attachmentHtml}</div>` : '';
|
|
243
|
+
content += attachmentHtml ? `\n\n<div class="row mt-3">${attachmentHtml}</div>` : '';
|
|
244
244
|
|
|
245
245
|
// bust posts cache item
|
|
246
246
|
if (pid) {
|
|
@@ -265,8 +265,8 @@ async function process(content, { type, pid, tid, attachments }) {
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
content = $.html();
|
|
268
|
-
content += attachmentHtml ? `\n\n<div class="row"><div class="col-12 mt-3">${attachmentHtml}</div></div>` : '';
|
|
269
|
-
content += placeholderHtml ? `\n\n<div class="row"><div class="col-12 mt-3">${placeholderHtml}</div></div>` : '';
|
|
268
|
+
content += attachmentHtml ? `\n\n<div class="row mt-3"><div class="col-12 mt-3">${attachmentHtml}</div></div>` : '';
|
|
269
|
+
content += placeholderHtml ? `\n\n<div class="row mt-3"><div class="col-12 mt-3">${placeholderHtml}</div></div>` : '';
|
|
270
270
|
return content;
|
|
271
271
|
}
|
|
272
272
|
|