|
|
@ -68,6 +68,8 @@ function renderAdmin(req, res, next) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
library.addUserToTopic = async function (hookData) {
|
|
|
|
library.addUserToTopic = async function (hookData) {
|
|
|
|
|
|
|
|
const settings = await meta.settings.get('persona');
|
|
|
|
|
|
|
|
if (settings.enableQuickReply === 'on') {
|
|
|
|
if (hookData.req.user) {
|
|
|
|
if (hookData.req.user) {
|
|
|
|
const userData = await user.getUserData(hookData.req.user.uid);
|
|
|
|
const userData = await user.getUserData(hookData.req.user.uid);
|
|
|
|
hookData.templateData.loggedInUser = userData;
|
|
|
|
hookData.templateData.loggedInUser = userData;
|
|
|
@ -80,6 +82,8 @@ library.addUserToTopic = async function (hookData) {
|
|
|
|
'icon:bgColor': '#aaa',
|
|
|
|
'icon:bgColor': '#aaa',
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return hookData;
|
|
|
|
return hookData;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|