updated lru to latest
created new files posts/cache.js posts/parse.js posts/edit.js
This commit is contained in:
barisusakli
2015-04-20 17:56:43 -04:00
parent eb0e2fe75d
commit 1f06f90a50
14 changed files with 238 additions and 205 deletions

View File

@@ -7,7 +7,6 @@ var async = require('async'),
utils = require('../public/src/utils'),
user = require('./user'),
topics = require('./topics'),
postTools = require('./postTools'),
privileges = require('./privileges'),
plugins = require('./plugins');
@@ -15,6 +14,8 @@ var async = require('async'),
require('./posts/create')(Posts);
require('./posts/delete')(Posts);
require('./posts/edit')(Posts);
require('./posts/parse')(Posts);
require('./posts/user')(Posts);
require('./posts/topics')(Posts);
require('./posts/category')(Posts);
@@ -52,7 +53,7 @@ var async = require('async'),
post.relativeTime = utils.toISOString(post.timestamp);
post.relativeEditTime = parseInt(post.edited, 10) !== 0 ? utils.toISOString(post.edited) : '';
postTools.parsePost(post, next);
Posts.parsePost(post, next);
}, next);
},
function(posts, next) {