From 296b528657937961c25a97acd00514cc21ba3283 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 e91f07f83..6eb7d59b9 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 9e57ec8c3e8d2685a81355edbd2d900cb752dda7 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 6eb7d59b9..aa784f264 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, }; }