mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
修复discussion模块
This commit is contained in:
1 parent
2554cf660a
commit
33e277f28f
30 files changed
+2460
-187
No files matched your search
@@ -113,7 +113,6 @@ class Handler {
|
||||
|
||||
back(body) {
|
||||
if (body) this.response.body = body;
|
||||
else if (this.preferJson) this.response.body = {};
|
||||
this.response.redirect = this.request.headers.referer || '/';
|
||||
}
|
||||
|
||||
@@ -129,6 +128,7 @@ class Handler {
|
||||
}
|
||||
|
||||
async ___prepare() {
|
||||
this.response.body = {};
|
||||
this.now = new Date();
|
||||
this._handler.sid = this.request.cookies.get('sid');
|
||||
this._handler.save = this.request.cookies.get('save');
|
||||
@@ -241,7 +241,7 @@ class Handler {
|
||||
}
|
||||
}
|
||||
|
||||
const check = ['tid', 'rid', 'did', 'drid', 'drrid', 'psid', 'psrid'];
|
||||
const check = ['tid', 'rid', 'did', 'drid', 'drrid', 'psid', 'psrid', 'docId'];
|
||||
|
||||
function Route(route, RouteHandler) {
|
||||
router.all(route, async (ctx) => {
|
||||
|
||||
Reference in new issue
Block a user