nodebb-plugin-link-preview 2.0.15 → 2.0.16
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 +1 -0
- package/package-lock.json +2 -2
- package/package.json +1 -1
package/library.js
CHANGED
|
@@ -108,6 +108,7 @@ async function process(content, { type, pid, tid, attachments }) {
|
|
|
108
108
|
|
|
109
109
|
// Skip if the anchor has link text, or has text on the same line.
|
|
110
110
|
let url = $anchor.attr('href');
|
|
111
|
+
url = decodeURI(url);
|
|
111
112
|
const text = $anchor.text();
|
|
112
113
|
const hasSiblings = !!anchor.prev || !!anchor.next;
|
|
113
114
|
if (hasSiblings || url !== text || anchor.parent.name !== 'p') {
|
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.16",
|
|
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.16",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"cheerio": "^1.0.0-rc.12",
|