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.
Files changed (3) hide show
  1. package/README.md +3 -8
  2. package/library.js +1 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,9 +1,4 @@
1
- # nodebb-plugin-discord-onekite v1.1.4.2
1
+ # nodebb-plugin-discord-onekite v1.1.4.3
2
2
 
3
- Based on v1.1.4.
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-discord-onekite",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "Discord webhook notifier for Onekite (NodeBB v4.x only)",
5
5
  "main": "library.js",
6
6
  "license": "MIT",