mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-18 05:22:48 +01:00
fix: #13892, logical flaw
This commit is contained in:
@@ -310,7 +310,7 @@ Out.announce.topic = enabledCheck(async (tid, uid) => {
|
||||
|
||||
if (uid) {
|
||||
const exists = await user.exists(uid);
|
||||
if (!exists || !utils.isNumber(cid)) {
|
||||
if (!exists) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user