From e72b26f5659ff6dc71e5214cf4c414694c7da281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 20 Dec 2023 15:11:59 -0500 Subject: [PATCH 1/2] fix: dont send topic notification to poster --- src/categories/topics.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/categories/topics.js b/src/categories/topics.js index 2bc9aa58cf..a8396a4ab2 100644 --- a/src/categories/topics.js +++ b/src/categories/topics.js @@ -219,7 +219,10 @@ module.exports = function (Categories) { min: Categories.watchStates.watching, max: Categories.watchStates.watching, }); - + const index = followers.indexOf(String(exceptUid)); + if (index !== -1) { + followers.splice(index, 1); + } if (!followers.length) { return; } From 459468be0f609142e98310cd638df09497258e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 21 Dec 2023 09:41:11 -0500 Subject: [PATCH 2/2] go to moved post --- public/src/client/topic/move-post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/topic/move-post.js b/public/src/client/topic/move-post.js index c8d1522db7..555737d194 100644 --- a/public/src/client/topic/move-post.js +++ b/public/src/client/topic/move-post.js @@ -149,7 +149,7 @@ define('forum/topic/move-post', [ $(this).remove(); }); }); - if (data.pids.length === 1 && ajaxify.data.template.topic && + if (data.pids.length && ajaxify.data.template.topic && parseInt(data.tid, 10) === parseInt(ajaxify.data.tid, 10)) { ajaxify.go(`/post/${data.pids[0]}`); }