fix: #10167, fix regression prevent guest post

This commit is contained in:
Barış Soner Uşaklı
2022-01-15 10:29:52 -05:00
parent f5ad173b56
commit 4799efc790

View File

@@ -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);
}