nodebb-plugin-discord-onekite 1.1.11 → 1.1.12
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/README.md +3 -8
- package/library.js +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
# nodebb-plugin-discord-onekite v1.1.4.
|
|
1
|
+
# nodebb-plugin-discord-onekite v1.1.4.3
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Change: Discord notification format is now:
|
|
6
|
-
- Single clickable link line: 🆕 Nouveau sujet : [Titre](URL) (or reply variant)
|
|
7
|
-
- Excerpt below
|
|
8
|
-
|
|
9
|
-
ACP behavior unchanged from v1.1.4.
|
|
3
|
+
Fix: syntax error in library.js (newline in join string).
|
|
4
|
+
Keeps v1.1.4-based changes: single clickable link line + excerpt below.
|
package/library.js
CHANGED
|
@@ -161,8 +161,7 @@ async function buildPayload({ tid, pid, isReply }) {
|
|
|
161
161
|
? `🗨️ Nouvelle réponse : [${title}](${postUrl})`
|
|
162
162
|
: `🆕 Nouveau sujet : [${title}](${topicUrl})`;
|
|
163
163
|
|
|
164
|
-
const content = [linkLine, description].filter(Boolean).join('
|
|
165
|
-
');
|
|
164
|
+
const content = [linkLine, description].filter(Boolean).join('\n');
|
|
166
165
|
|
|
167
166
|
return { topicData, embed, content };
|
|
168
167
|
}
|