core: !EXPERIMENTAL! 支持跨域引用题目

This commit is contained in:
undefined committed 2021-05-28 22:10:16 +08:00
1 parent 33d7c70ef6
commit d897391e9a
25 files changed
+434 -392

No files matched your search

+1 -1
View File
@@ -206,7 +206,7 @@ class UserDetailHandler extends Handler {
this.user.hasPerm(PERM.PERM_VIEW_PROBLEM_HIDDEN), false,
)
: Object.fromEntries(rdocs.map(
(rdoc) => [rdoc.pid, problem.create(undefined, rdoc.pid.toString())],
(rdoc) => [rdoc.pid, { ...problem.default, pid: rdoc.pid }],
));
// Remove sensitive data
if (!isSelfProfile && sdoc) {