From c2239e486d3d2d4f9667269caade48389dada199 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] 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; }