fix: #10167, fix regression prevent guest post

isekai-main
Barış Soner Uşaklı 3 years ago
parent f5ad173b56
commit 4799efc790

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

Loading…
Cancel
Save