also dont allow loading posts of a topic if its deleted via
topics.loadMore
This commit is contained in:
barisusakli
2015-05-11 15:12:23 -04:00
parent be1865da2d
commit b292aeea72
5 changed files with 12 additions and 5 deletions

View File

@@ -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) {