nodebb-plugin-link-preview 2.2.3 → 2.2.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nodebb-plugin-link-preview",
3
- "version": "2.2.3",
4
- "description": "A starter kit for quickly creating NodeBB plugins",
3
+ "version": "2.2.4",
4
+ "description": "This plugin adds in additional post parsing capability to NodeBB so that any external links are automatically expanded into an interactive box containing any available metadata (e.g. photo, title, description, etc.)",
5
5
  "main": "library.js",
6
6
  "repository": {
7
7
  "type": "git",
@@ -3,7 +3,7 @@
3
3
  {{{ each images }}}
4
4
  {{{ if @first }}}
5
5
  <a href="{url}" title="{title}">
6
- <img src="{@value}" class="card-img-top not-responsive" style="max-height: 15rem;" alt="Link Preview Image" />
6
+ <img src="{@value}" class="card-img-top not-responsive" style="max-height: 15rem;" alt="Link Preview Image" onerror="this.parentElement.remove()" />
7
7
  </a>
8
8
  {{{ end }}}
9
9
  {{{ end }}}
@@ -20,7 +20,7 @@
20
20
  {{{ if favicons.length }}}
21
21
  {{{ each favicons }}}
22
22
  {{{ if @first }}}
23
- <img src="{@value}" alt="favicon" class="not-responsive overflow-hiddden" style="max-width: 21px; max-height: 21px;" />
23
+ <img src="{@value}" alt="favicon" class="not-responsive overflow-hiddden" style="max-width: 21px; max-height: 21px;" onerror="this.remove()"/>
24
24
  {{{ end }}}
25
25
  {{{ end }}}
26
26
  {{{ end }}}