nodebb-plugin-link-preview 2.0.2 → 2.0.3
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.json +1 -1
package/library.js
CHANGED
|
@@ -146,7 +146,7 @@ async function process(content, opts) {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
case 'attachment': {
|
|
149
|
-
attachmentHtml +=
|
|
149
|
+
attachmentHtml += html;
|
|
150
150
|
break;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
@@ -180,7 +180,7 @@ async function process(content, opts) {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
case 'attachment': {
|
|
183
|
-
attachmentHtml +=
|
|
183
|
+
attachmentHtml += html;
|
|
184
184
|
break;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
@@ -211,7 +211,7 @@ async function process(content, opts) {
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
content = $.html();
|
|
214
|
-
content += attachmentHtml ? `\n\n<div class="row">${attachmentHtml}</div>` : '';
|
|
214
|
+
content += attachmentHtml ? `\n\n<div class="row"><div class="col-12">${attachmentHtml}</div></div>` : '';
|
|
215
215
|
return content;
|
|
216
216
|
}
|
|
217
217
|
|