mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +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);
|
postData = await onNewPost(postData, data);
|
||||||
|
|
||||||
const settings = await user.getSettings(uid);
|
const settings = await user.getSettings(uid);
|
||||||
if (settings.followTopicsOnReply) {
|
if (uid > 0 && settings.followTopicsOnReply) {
|
||||||
await Topics.follow(postData.tid, uid);
|
await Topics.follow(postData.tid, uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user