core: fix owner display on problem & contest (#614)

This commit is contained in:
panda authored and GitHub committed 2023-08-17 06:39:35 +08:00
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),
];
+1
View File
@@ -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'];