Skip to content

Node.js based forum software built for the modern web

fix: #10167, fix regression prevent guest post

Barış Soner Uşaklı4799efc79094
diff --git a/src/topics/create.js b/src/topics/create.js
index cdb304cad7..512e70eda7 100644
--- a/src/topics/create.js
+++ b/src/topics/create.js
@@ -183,7 +183,7 @@ module.exports = function (Topics) {
postData = await onNewPost(postData, data);
const settings = await user.getSettings(uid);
- if (settings.followTopicsOnReply) {
+ if (uid > 0 && settings.followTopicsOnReply) {
await Topics.follow(postData.tid, uid);
}