From 82bc0871e85b3eb255fd73193e043bfd08d575f8 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 7 Nov 2024 12:01:11 -0500 Subject: [PATCH] Fix modlog mod_id filtering not working. (#2795) * Fix modlog mod_id filtering not working. - Fixes #2794 * Removing pointless cliff.toml changes. * Fixing modlog id filtering. --- src/shared/components/modlog.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/shared/components/modlog.tsx b/src/shared/components/modlog.tsx index aa542764..1afa53b0 100644 --- a/src/shared/components/modlog.tsx +++ b/src/shared/components/modlog.tsx @@ -1058,10 +1058,7 @@ export class Modlog extends Component { limit: fetchLimit, type_: actionType, other_person_id: userId, - mod_person_id: !this.isoData.site_res.site_view.local_site - .hide_modlog_mod_names - ? modId - : undefined, + mod_person_id: modId, comment_id: commentId, post_id: postId, }); @@ -1091,19 +1088,15 @@ export class Modlog extends Component { static async fetchInitialData({ headers, - query: { page, userId, modId: modId_, actionType, commentId, postId }, + query: { page, userId, modId, actionType, commentId, postId }, match: { params: { communityId: urlCommunityId }, }, - site, }: InitialFetchRequest): Promise { const client = wrapClient( new LemmyHttp(getHttpBaseInternal(), { headers }), ); const communityId = getIdFromString(urlCommunityId); - const modId = !site.site_view.local_site.hide_modlog_mod_names - ? modId_ - : undefined; const modlogForm: GetModlog = { page,