mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
core: do not filter self-created domain
This commit is contained in:
1 parent
4e564f1ca8
commit
0149acceee
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.29.24",
|
||||
"version": "2.29.25",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -298,7 +298,7 @@ class HomeDomainHandler extends Handler {
|
||||
for (const ddoc of _ddocs) {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
const pcount = await ProblemModel.count(ddoc._id, {});
|
||||
if (pcount >= 3) {
|
||||
if (pcount >= 3 || ddoc.owner === this.user._id) {
|
||||
dudict[ddoc._id] = ddoc;
|
||||
ddocs.push(ddoc);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user