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

+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'];