Skip to content

Commit

Permalink
Fix modlog mod_id filtering not working. (#2795)
Browse files Browse the repository at this point in the history
* Fix modlog mod_id filtering not working.

- Fixes #2794

* Removing pointless cliff.toml changes.

* Fixing modlog id filtering.
  • Loading branch information
dessalines authored Nov 7, 2024
1 parent abab21b commit 82bc087
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/shared/components/modlog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1058,10 +1058,7 @@ export class Modlog extends Component<ModlogRouteProps, ModlogState> {
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,
});
Expand Down Expand Up @@ -1091,19 +1088,15 @@ export class Modlog extends Component<ModlogRouteProps, ModlogState> {

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<ModlogPathProps, ModlogProps>): Promise<ModlogData> {
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,
Expand Down

0 comments on commit 82bc087

Please sign in to comment.