deleting and restoring posts and topics now update the corresponding RSS feeds

fixed #257
This commit is contained in:
Julian Lam
2013-09-10 12:34:48 -04:00
parent a53e75aeaa
commit b8b6558f53
3 changed files with 26 additions and 11 deletions

View File

@@ -11,7 +11,8 @@ var RDB = require('./redis.js'),
postSearch = reds.createSearch('nodebbpostsearch'),
topicSearch = reds.createSearch('nodebbtopicsearch'),
winston = require('winston'),
meta = require('./meta.js');
meta = require('./meta.js'),
Feed = require('./feed');
(function(PostTools) {
PostTools.isMain = function(pid, tid, callback) {
@@ -138,6 +139,8 @@ var RDB = require('./redis.js'),
});
}
});
Feed.updateTopic(postData.tid);
});
};
@@ -174,6 +177,8 @@ var RDB = require('./redis.js'),
}
});
Feed.updateTopic(postData.tid);
postSearch.index(postData.content, pid);
});
};