mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix: #10167, fix regression prevent guest post
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user