From 77dd6dd0e7e361eee376637d7b768cf62233f1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 14 Feb 2025 10:41:52 -0500 Subject: [PATCH 1/3] refactor: single remove --- src/analytics.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/analytics.js b/src/analytics.js index 16ae85cea9..45e8f698d9 100644 --- a/src/analytics.js +++ b/src/analytics.js @@ -39,9 +39,7 @@ Analytics.init = async function () { if (runJobs) { new cronJob('*/30 * * * *', (async () => { - const cutoff = Date.now() - 172800000; - const ips = await db.getSortedSetRangeByScore('ip:recent', 0, 500, '-inf', cutoff); - await db.sortedSetRemove('ip:recent', ips); + await db.sortedSetsRemoveRangeByScore(['ip:recent'], '-inf', Date.now() - 172800000); }), null, true); } From 04f51cc63a187f7bd2582f4c56d1cc118836ae0e Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 14 Feb 2025 20:25:05 -0500 Subject: [PATCH 2/3] fix: change the passed-in notificatiom id for `notifyTagFollowers` to contain the list of matched tags fixes: #13087 --- src/topics/tags.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/tags.js b/src/topics/tags.js index 4f2bc6dc97..9d4865122d 100644 --- a/src/topics/tags.js +++ b/src/topics/tags.js @@ -621,7 +621,7 @@ module.exports = function (Topics) { const notification = await notifications.create({ type: 'new-topic-with-tag', - nid: `new_topic:tid:${postData.topic.tid}:uid:${exceptUid}`, + nid: `new_topic:tags:${tags.join('.')}:tid:${postData.topic.tid}:uid:${exceptUid}`, bodyShort: bodyShort, bodyLong: postData.content, pid: postData.pid, From fa36609537180e47193c3155a7d75f5ed0ba73ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 15 Feb 2025 12:15:54 -0500 Subject: [PATCH 3/3] chore: up deps --- install/package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install/package.json b/install/package.json index 5de8e827b4..43e4ca648a 100644 --- a/install/package.json +++ b/install/package.json @@ -98,16 +98,16 @@ "mousetrap": "1.6.5", "multiparty": "4.2.3", "nconf": "0.12.1", - "nodebb-plugin-2factor": "7.5.8", - "nodebb-plugin-composer-default": "10.2.44", - "nodebb-plugin-dbsearch": "6.2.8", + "nodebb-plugin-2factor": "7.5.9", + "nodebb-plugin-composer-default": "10.2.45", + "nodebb-plugin-dbsearch": "6.2.9", "nodebb-plugin-emoji": "6.0.2", "nodebb-plugin-emoji-android": "4.1.1", - "nodebb-plugin-markdown": "13.0.0", + "nodebb-plugin-markdown": "13.1.0", "nodebb-plugin-mentions": "4.6.10", - "nodebb-plugin-spam-be-gone": "2.3.0", + "nodebb-plugin-spam-be-gone": "2.3.1", "nodebb-plugin-web-push": "0.7.2", - "nodebb-rewards-essentials": "1.0.0", + "nodebb-rewards-essentials": "1.0.1", "nodebb-theme-harmony": "2.0.22", "nodebb-theme-lavender": "7.1.17", "nodebb-theme-peace": "2.2.38",