mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 22:01:13 +00:00
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.
This commit is contained in:
parent
abab21b650
commit
82bc0871e8
1 changed files with 2 additions and 9 deletions
|
@ -1058,10 +1058,7 @@ export class Modlog extends Component<ModlogRouteProps, ModlogState> {
|
||||||
limit: fetchLimit,
|
limit: fetchLimit,
|
||||||
type_: actionType,
|
type_: actionType,
|
||||||
other_person_id: userId,
|
other_person_id: userId,
|
||||||
mod_person_id: !this.isoData.site_res.site_view.local_site
|
mod_person_id: modId,
|
||||||
.hide_modlog_mod_names
|
|
||||||
? modId
|
|
||||||
: undefined,
|
|
||||||
comment_id: commentId,
|
comment_id: commentId,
|
||||||
post_id: postId,
|
post_id: postId,
|
||||||
});
|
});
|
||||||
|
@ -1091,19 +1088,15 @@ export class Modlog extends Component<ModlogRouteProps, ModlogState> {
|
||||||
|
|
||||||
static async fetchInitialData({
|
static async fetchInitialData({
|
||||||
headers,
|
headers,
|
||||||
query: { page, userId, modId: modId_, actionType, commentId, postId },
|
query: { page, userId, modId, actionType, commentId, postId },
|
||||||
match: {
|
match: {
|
||||||
params: { communityId: urlCommunityId },
|
params: { communityId: urlCommunityId },
|
||||||
},
|
},
|
||||||
site,
|
|
||||||
}: InitialFetchRequest<ModlogPathProps, ModlogProps>): Promise<ModlogData> {
|
}: InitialFetchRequest<ModlogPathProps, ModlogProps>): Promise<ModlogData> {
|
||||||
const client = wrapClient(
|
const client = wrapClient(
|
||||||
new LemmyHttp(getHttpBaseInternal(), { headers }),
|
new LemmyHttp(getHttpBaseInternal(), { headers }),
|
||||||
);
|
);
|
||||||
const communityId = getIdFromString(urlCommunityId);
|
const communityId = getIdFromString(urlCommunityId);
|
||||||
const modId = !site.site_view.local_site.hide_modlog_mod_names
|
|
||||||
? modId_
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
const modlogForm: GetModlog = {
|
const modlogForm: GetModlog = {
|
||||||
page,
|
page,
|
||||||
|
|
Loading…
Reference in a new issue