mirror of
https://github.com/luxfi/pics.git
synced 2026-10-30 15:22:15 +00:00
15 lines
403 B
JavaScript
15 lines
403 B
JavaScript
'use strict';
|
|
|
|
module.exports = async (req, res) => {
|
|
|
|
return res
|
|
.set('Cache-Control', 'private, max-age=5')
|
|
.render('editpost', {
|
|
'csrf': req.csrfToken(),
|
|
'post': res.locals.post,
|
|
'board': res.locals.board,
|
|
'referer': (req.headers.referer || `/${res.locals.post.board}/manage/thread/${res.locals.post.thread || res.locals.post.postId}.html`) + `#${res.locals.post.postId}`,
|
|
});
|
|
|
|
};
|