mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 13:30:23 +01:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d9adac6e4 | ||
|
|
f0c4052725 | ||
|
|
57b033b6d1 | ||
|
|
4d13fb6809 | ||
|
|
cee3918e9b | ||
|
|
05ef18fb2e | ||
|
|
101228711f | ||
|
|
79c0049922 | ||
|
|
7945ae071b | ||
|
|
e911256c9c | ||
|
|
15cf2f58b4 |
4131
npm-shrinkwrap.json
generated
Normal file
4131
npm-shrinkwrap.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -9,9 +9,8 @@ module.exports = function(Posts) {
|
||||
Posts.parsePost = function(postData, callback) {
|
||||
postData.content = postData.content || '';
|
||||
|
||||
var cachedContent = cache.get(postData.pid);
|
||||
if (cachedContent) {
|
||||
postData.content = cachedContent;
|
||||
if (postData.pid && cache.has(postData.pid)) {
|
||||
postData.content = cache.get(postData.pid);
|
||||
return callback(null, postData);
|
||||
}
|
||||
|
||||
@@ -38,4 +37,4 @@ module.exports = function(Posts) {
|
||||
|
||||
plugins.fireHook('filter:parse.signature', {userData: userData, uid: uid}, callback);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user