mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix owner display on problem & contest (#614)
This commit is contained in:
1 parent
f79f3d2d79
commit
b73afc7af6
10 files changed
+6
-10
No files matched your search
@@ -173,6 +173,7 @@ class DiscussionDetailHandler extends DiscussionHandler {
|
||||
system.get('pagination.reply'),
|
||||
);
|
||||
const uids = [
|
||||
...this.vnode.owner ? [this.vnode.owner] : [],
|
||||
this.ddoc.owner,
|
||||
...drdocs.map((drdoc) => drdoc.owner),
|
||||
];
|
||||
|
||||
@@ -376,6 +376,7 @@ export class ProblemDetailHandler extends ContestDetailBaseHandler {
|
||||
solutionCount: scnt,
|
||||
discussionCount: dcnt,
|
||||
tdoc: this.tdoc,
|
||||
owner_udoc: (tid && this.tdoc.owner !== this.pdoc.owner) ? await user.getById(domainId, this.tdoc.owner) : null,
|
||||
};
|
||||
if (this.tdoc && this.tsdoc) {
|
||||
const fields = ['attend', 'startAt'];
|
||||
|
||||
Reference in new issue
Block a user