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