nodebb-theme-harmony 1.0.0-beta.74 → 1.0.0-beta.75
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 +0 -19
- package/package.json +1 -1
- package/plugin.json +0 -1
package/library.js
CHANGED
|
@@ -138,25 +138,6 @@ library.saveUserSettings = async function (hookData) {
|
|
|
138
138
|
return hookData;
|
|
139
139
|
};
|
|
140
140
|
|
|
141
|
-
library.addUserToTopic = async function (hookData) {
|
|
142
|
-
const { enableQuickReply } = await loadThemeConfig(hookData.req.uid);
|
|
143
|
-
if (enableQuickReply) {
|
|
144
|
-
if (hookData.req.user) {
|
|
145
|
-
const userData = await user.getUserData(hookData.req.uid);
|
|
146
|
-
hookData.templateData.loggedInUser = userData;
|
|
147
|
-
} else {
|
|
148
|
-
hookData.templateData.loggedInUser = {
|
|
149
|
-
uid: 0,
|
|
150
|
-
username: '[[global:guest]]',
|
|
151
|
-
picture: user.getDefaultAvatar(),
|
|
152
|
-
'icon:text': '?',
|
|
153
|
-
'icon:bgColor': '#aaa',
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
return hookData;
|
|
158
|
-
};
|
|
159
|
-
|
|
160
141
|
library.filterMiddlewareRenderHeader = async function (hookData) {
|
|
161
142
|
const userSettings = await user.getSettings(hookData.req.uid);
|
|
162
143
|
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
{ "hook": "filter:settings.get", "method": "getAdminSettings"},
|
|
9
9
|
{ "hook": "filter:user.saveSettings", "method": "saveUserSettings" },
|
|
10
10
|
{ "hook": "filter:user.profileMenu", "method": "addProfileItem" },
|
|
11
|
-
{ "hook": "filter:topic.build", "method": "addUserToTopic" },
|
|
12
11
|
{ "hook": "filter:middleware.renderHeader", "method": "filterMiddlewareRenderHeader" },
|
|
13
12
|
{ "hook": "filter:middleware.render", "method": "removeFinalBreadcrumb" }
|
|
14
13
|
],
|