Skip to content

Node.js based forum software built for the modern web

fix: dont send topic notification to poster

Barış Soner Uşaklıc2239e486d3d
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;
}