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.
Files changed (3) hide show
  1. package/README.md +9 -7
  2. package/library.js +0 -9
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,9 +1,11 @@
1
- # nodebb-plugin-discord-onekite v1.1.4.9
1
+ # nodebb-plugin-discord-onekite v1.1.4.10
2
2
 
3
- ACP uses official NodeBB approach (quickstart):
4
- - `settings.sync()` + `settings.persist()`
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
- Discord embed:
8
- - clickable title (embed.url)
9
- - description = message excerpt only
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-discord-onekite",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "description": "Discord webhook notifier for Onekite (NodeBB v4.x only)",
5
5
  "main": "library.js",
6
6
  "license": "MIT",