Merge branch 'master' into develop

This commit is contained in:
Barış Soner Uşaklı
2025-02-22 17:12:52 -05:00
6 changed files with 11 additions and 8 deletions

View File

@@ -99,7 +99,7 @@
"multiparty": "4.2.3",
"nconf": "0.12.1",
"nodebb-plugin-2factor": "7.5.9",
"nodebb-plugin-composer-default": "10.2.46",
"nodebb-plugin-composer-default": "10.2.47",
"nodebb-plugin-dbsearch": "6.2.12",
"nodebb-plugin-emoji": "6.0.2",
"nodebb-plugin-emoji-android": "4.1.1",
@@ -108,7 +108,7 @@
"nodebb-plugin-spam-be-gone": "2.3.1",
"nodebb-plugin-web-push": "0.7.3",
"nodebb-rewards-essentials": "1.0.1",
"nodebb-theme-harmony": "2.0.34",
"nodebb-theme-harmony": "2.0.35",
"nodebb-theme-lavender": "7.1.17",
"nodebb-theme-peace": "2.2.39",
"nodebb-theme-persona": "14.0.15",

View File

@@ -1,7 +1,8 @@
{
"category": "Category",
"subcategories": "Subcategories",
"uncategorized": "Uncategorized",
"uncategorized.description": "Topics that do not strictly fit in with any existing categories",
"new-topic-button": "New Topic",
"guest-login-post": "Log in to post",
"no-topics": "<strong>There are no topics in this category.</strong><br />Why don't you try posting one?",

View File

@@ -15,8 +15,8 @@ const intFields = [
const worldCategory = {
cid: -1,
name: 'Uncategorized',
description: 'Topics that do not strictly fit in with any existing categories',
name: '[[category:uncategorized]]',
description: '[[category:uncategorized.description]]',
icon: 'fa-globe',
imageClass: 'cover',
bgColor: '#eee',

View File

@@ -49,7 +49,6 @@ controller.list = async function (req, res) {
targetUid: targetUid,
};
const data = await categories.getCategoryById(cidQuery);
data.name = '[[world:name]]';
delete data.children;
let tids = await categories.getTopicIds(cidQuery);

View File

@@ -17,6 +17,10 @@ const batch = require('../batch');
const SocketHelpers = module.exports;
SocketHelpers.notifyNew = async function (uid, type, result) {
const post = result.posts[0];
if (post && post.topic && parseInt(post.topic.cid, 10) === -1) {
return;
}
let uids = await user.getUidsFromSet('users:online', 0, -1);
uids = uids.filter(toUid => parseInt(toUid, 10) !== uid);
await batch.processArray(uids, async (uids) => {

View File

@@ -3,7 +3,6 @@
'use strict';
const db = require('../../database');
const user = require('../../user');
const batch = require('../../batch');
module.exports = {
@@ -18,7 +17,7 @@ module.exports = {
}
await batch.processSortedSet(`users:joindate`, async (uids) => {
const userSettings = await user.getMultipleUserSettings(uids);
const userSettings = await db.getObjects(uids.map(uid => `user:${uid}:settings`));
const change = userSettings.filter(s => s && s.categoryWatchState === 'watching');
await db.setObjectBulk(
change.map(s => [`user:${s.uid}:settings`, { categoryWatchState: 'tracking' }])