LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
12.95k stars 859 forks source link

Make sure modlog `Filter by user` filters not just by the target person, but also the `mod_person_id` #4867

Open dessalines opened 1 week ago

dessalines commented 1 week ago

Requirements

Is your proposal related to a problem?

There was a case today where I (as an admin) needed to unban a bunch of misbans from a rogue moderator.

Unfortunately the modlog filter only filters by the target / recipient of the mod action, not the mod themselves.

Describe the solution you'd like.

The modlog person filter should do an OR filter on the mod_person_id also.

Describe alternatives you've considered.

NA

Additional context

NA

Nothing4You commented 1 week ago

This seems to either be configuration related or a regression since 0.19.3

In 0.19.3 there is a separate field for filtering by moderator:

image

This is also exposed in the getModlog API request: https://join-lemmy.org/api/interfaces/GetModlog.html

This is probably a -ui issue?

Nothing4You commented 1 week ago

This filter still works via API on 0.19.5, I just tested it.