mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-02 13:50:36 +01:00
Merge branch 'master' into develop
This commit is contained in:
@@ -10,6 +10,7 @@ const meta = require('../meta');
|
||||
const plugins = require('../plugins');
|
||||
const translator = require('../translator');
|
||||
const utils = require('../utils');
|
||||
const postCache = require('./cache');
|
||||
|
||||
let sanitizeConfig = {
|
||||
allowedTags: sanitize.defaults.allowedTags.concat([
|
||||
@@ -49,7 +50,7 @@ module.exports = function (Posts) {
|
||||
return postData;
|
||||
}
|
||||
postData.content = String(postData.content || '');
|
||||
const cache = require('./cache');
|
||||
const cache = postCache.getOrCreate();
|
||||
const pid = String(postData.pid);
|
||||
const cachedContent = cache.get(pid);
|
||||
if (postData.pid && cachedContent !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user