nodebb-plugin-discord-onekite 1.1.17 → 1.1.18
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 +9 -7
- package/library.js +0 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
# nodebb-plugin-discord-onekite v1.1.4.
|
|
1
|
+
# nodebb-plugin-discord-onekite v1.1.4.10
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
- `
|
|
5
|
-
- save button partial (bottom-right)
|
|
3
|
+
Fix: startup crash in v1.1.4.9 (broken `try/catch` after partial removal).
|
|
4
|
+
- `Plugin.init` is now clean again (admin page route only).
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
|
|
6
|
+
ACP:
|
|
7
|
+
- Uses NodeBB `settings` module + `save_button` partial.
|
|
8
|
+
|
|
9
|
+
Discord:
|
|
10
|
+
- Embed only (clickable title via embed.url)
|
|
11
|
+
- Embed description = message excerpt only
|
package/library.js
CHANGED
|
@@ -182,15 +182,6 @@ Plugin.init = async ({ router }) => {
|
|
|
182
182
|
[],
|
|
183
183
|
controllers.renderAdminPage
|
|
184
184
|
);
|
|
185
|
-
|
|
186
|
-
// AJAX save endpoint for ACP (used by admin.js)
|
|
187
|
-
res.json({ ok: true });
|
|
188
|
-
} catch (e) {
|
|
189
|
-
console.error('[discord-onekite] save failed', e);
|
|
190
|
-
res.status(500).json({ ok: false });
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
);
|
|
194
185
|
};
|
|
195
186
|
|
|
196
187
|
Plugin.addAdminNavigation = (header) => {
|