mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
closes #3120
also dont allow loading posts of a topic if its deleted via topics.loadMore
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = function(Posts) {
|
||||
Posts.create = function(data, callback) {
|
||||
var uid = data.uid,
|
||||
tid = data.tid,
|
||||
content = data.content,
|
||||
content = data.content.toString(),
|
||||
timestamp = data.timestamp || Date.now();
|
||||
|
||||
if (!uid && parseInt(uid, 10) !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user