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 +2 -3
- package/package.json +1 -1
- package/public/client.js +0 -5
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',
|
|
108
|
+
router.get('/api/plugins/ezoic-infinite/config', async (req, res) => {
|
|
109
109
|
const settings = await getSettings();
|
|
110
|
-
const
|
|
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
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
|
|