fix: dont send topic notification to poster

This commit is contained in:
Barış Soner Uşaklı
2023-12-20 15:11:59 -05:00
parent eb92cee633
commit e72b26f565

View File

@@ -219,7 +219,10 @@ module.exports = function (Categories) {
min: Categories.watchStates.watching, min: Categories.watchStates.watching,
max: Categories.watchStates.watching, max: Categories.watchStates.watching,
}); });
const index = followers.indexOf(String(exceptUid));
if (index !== -1) {
followers.splice(index, 1);
}
if (!followers.length) { if (!followers.length) {
return; return;
} }