mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: 修复drrdoc处uids获取
This commit is contained in:
1 parent
1b0bf4c37f
commit
f58db3eeb2
2 files changed
+6
-6
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.20.48",
|
"version": "2.20.49",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -192,12 +192,12 @@ class DiscussionDetailHandler extends DiscussionHandler {
|
|||||||
page,
|
page,
|
||||||
system.get('pagination.reply'),
|
system.get('pagination.reply'),
|
||||||
);
|
);
|
||||||
const uids = drdocs.map((drdoc) => drdoc.owner);
|
const uids = [
|
||||||
uids.push(this.ddoc.owner);
|
this.ddoc.owner,
|
||||||
|
...drdocs.map((drdoc) => drdoc.owner),
|
||||||
|
];
|
||||||
for (const drdoc of drdocs) {
|
for (const drdoc of drdocs) {
|
||||||
if (drdoc.reply) {
|
if (drdoc.reply) uids.push(...drdoc.reply.map((drrdoc) => drrdoc.owner));
|
||||||
drdocs.forEach((drrdoc) => uids.push(drrdoc.owner));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
const udict = await user.getList(domainId, uids);
|
const udict = await user.getList(domainId, uids);
|
||||||
const path = [
|
const path = [
|
||||||
|
|||||||
Reference in new issue
Block a user