nodebb-plugin-ezoic-infinite 1.5.8 → 1.5.10

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 CHANGED
@@ -105,10 +105,9 @@ plugin.init = async ({ router, middleware }) => {
105
105
  router.get('/admin/plugins/ezoic-infinite', middleware.admin.buildHeader, render);
106
106
  router.get('/api/admin/plugins/ezoic-infinite', render);
107
107
 
108
- router.get('/api/plugins/ezoic-infinite/config', middleware.authenticate, async (req, res) => {
108
+ router.get('/api/plugins/ezoic-infinite/config', async (req, res) => {
109
109
  const settings = await getSettings();
110
- const uid = (typeof req.uid === 'number' ? req.uid : (req.user && typeof req.user.uid === 'number' ? req.user.uid : 0));
111
- const excluded = await isUserExcluded(uid, settings.excludedGroups);
110
+ const excluded = await isUserExcluded(req.uid, settings.excludedGroups);
112
111
 
113
112
  res.json({
114
113
  excluded,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.5.8",
3
+ "version": "1.5.10",
4
4
  "description": "Production-ready Ezoic infinite ads integration for NodeBB 4.x",
5
5
  "main": "library.js",
6
6
  "license": "MIT",
package/public/client.js CHANGED
@@ -1,11 +1,6 @@
1
1
  (function () {
2
2
  'use strict';
3
3
 
4
- // Safety stubs (do NOT stub showAds)
5
- window._ezaq = window._ezaq || [];
6
- window.ezstandalone = window.ezstandalone || {};
7
- window.ezstandalone.cmd = window.ezstandalone.cmd || [];
8
-
9
4
  // NodeBB client context
10
5
  const $ = (typeof window.jQuery === 'function') ? window.jQuery : null;
11
6