From a3d26eaf3113e5736326bc743474ab81c1c5af6a Mon Sep 17 00:00:00 2001 From: daikei Date: Mon, 19 Jun 2023 14:08:34 +0000 Subject: [PATCH 1/2] Allow moderators to see moderation notes --- packages/backend/src/server/api/endpoints/admin/show-user.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/server/api/endpoints/admin/show-user.ts b/packages/backend/src/server/api/endpoints/admin/show-user.ts index e91f07f838..6eb7d59b90 100644 --- a/packages/backend/src/server/api/endpoints/admin/show-user.ts +++ b/packages/backend/src/server/api/endpoints/admin/show-user.ts @@ -42,6 +42,7 @@ export default define(meta, paramDef, async (ps, me) => { isModerator: user.isModerator, isSilenced: user.isSilenced, isSuspended: user.isSuspended, + moderationNote: profile.moderationNote, }; } From 0bc68a4b6fca9372ff34de858a10d9e5d6276f7d Mon Sep 17 00:00:00 2001 From: daikei Date: Mon, 19 Jun 2023 14:14:15 +0000 Subject: [PATCH 2/2] Fix formatting --- packages/backend/src/server/api/endpoints/admin/show-user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/admin/show-user.ts b/packages/backend/src/server/api/endpoints/admin/show-user.ts index 6eb7d59b90..aa784f264b 100644 --- a/packages/backend/src/server/api/endpoints/admin/show-user.ts +++ b/packages/backend/src/server/api/endpoints/admin/show-user.ts @@ -42,7 +42,7 @@ export default define(meta, paramDef, async (ps, me) => { isModerator: user.isModerator, isSilenced: user.isSilenced, isSuspended: user.isSuspended, - moderationNote: profile.moderationNote, + moderationNote: profile.moderationNote, }; }