Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you make the bot crawl the mod/admin actions too? #6

Open
4 of 15 tasks
M4rtineski opened this issue Jun 25, 2024 · 21 comments
Open
4 of 15 tasks

Can you make the bot crawl the mod/admin actions too? #6

M4rtineski opened this issue Jun 25, 2024 · 21 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@M4rtineski
Copy link
Contributor

M4rtineski commented Jun 25, 2024

  • "ModRemovePost"
  • "ModLockPost"
  • "ModFeaturePost"
  • "ModRemoveComment"
  • "ModRemoveCommunity"
  • "ModBanFromCommunity"
  • "ModAddCommunity"
  • "ModTransferCommunity"
  • "ModAdd"
  • "ModBan"
  • "ModHideCommunity"
  • "AdminPurgePerson"
  • "AdminPurgeCommunity"
  • "AdminPurgePost"
  • "AdminPurgeComment"

This would ensure that a moderator didn't do anything behind your back. And admin actions would just be included alongside as a bonus thought it wouldn't be useful unless the admin takes action without anyone making a report.

E: Moving this to the top for better tracking:

"This is the list of modlog actions we can check for. I've bolded the ones which might be of interest."

@M4rtineski M4rtineski added enhancement New feature or request question Further information is requested labels Jun 25, 2024
@M4rtineski M4rtineski changed the title Can you make the the bot crawl the mod/admin actions too? Can you make the bot crawl the mod/admin actions too? Jun 25, 2024
@M4rtineski
Copy link
Contributor Author

Tracking modlogs can be difficult when you moderate a few communities.

@chris-y
Copy link
Contributor

chris-y commented Jun 27, 2024

I can't see anything in Pythorhead about reading mod logs. I'll have to see if there's an API for it.

@M4rtineski
Copy link
Contributor Author

Shouldn't there be an API for it if lemmy is open source and has lots 3rd part apps? Or APIs for this and bots are different things?

@chris-y
Copy link
Contributor

chris-y commented Jun 27, 2024

This looks like the API for it:
https://join-lemmy.org/api/interfaces/ModlogListParams.html

Need to figure out how to add that to Pythorhead.

@M4rtineski
Copy link
Contributor Author

Have fun working on that while I go through my burnout. I could be back tomorrow or in a few days...

@chris-y
Copy link
Contributor

chris-y commented Jan 23, 2025

The API is actually GetModlog, I'm not sure what that other one does (the documentation is terrible).

Anyway, I've added it to Pythorhead - PR 109

We'll need to call it for each community we're interested in, and keep track of the logs we've seen.

@chris-y

This comment has been minimized.

@M4rtineski
Copy link
Contributor Author

For this specific issue other things like community transfer, mod appointemts, mod removal and so on would be useful too but I assume declaring what should be read will be trivial.

Maybe a way to set the crawled actions per community or give a community it's specifc set of actions while the other ones share one? Because for example lemmy directory does a lot of locking. Otherwise we could give up this specific action for them all which wouldn't hurt much. Especially when the shared modlog is on the horizon, the point is to notice quickly if appointed mod goes rouge or if there was an action taken to give a second opinion. With shared modlog it will be easier to keep a tab on it but notifications will help with a fast response time.

@chris-y
Copy link
Contributor

chris-y commented Jan 23, 2025

PR merged, available in 0.31.0

@chris-y
Copy link
Contributor

chris-y commented Jan 23, 2025

For this specific issue other things like community transfer, mod appointemts, mod removal and so on would be useful too but I assume declaring what should be read will be trivial.

It looks like we can get everything, or just one thing. If you want more than one you need to call it multiple times (which probably isn't that annoying, as all the actions appear to return slightly different responses anyway)

@M4rtineski
Copy link
Contributor Author

I moved the checklist into the issue but it didn't get detected as a part of the issue? Could it be the sub-issue blocking the task progress functionality? Anyway, should be easier for you regardless with it at the top.

@chris-y
Copy link
Contributor

chris-y commented Jan 29, 2025

Not sure. You can convert the list items to sub-issues by clicking on the menu next to them but not sure we really need a sub-issue for each.

@M4rtineski
Copy link
Contributor Author

I was talking about this visual thing for showing how many tasks are completed that you can see from the issues list view. Not important but it was partially why I did this and didn't expect it to not show up.

@chris-y
Copy link
Contributor

chris-y commented Jan 29, 2025

It might be because there's a "task" sub-issue already associated with it.

@chris-y
Copy link
Contributor

chris-y commented Jan 29, 2025

Actually, no, it's working here:
ResizedImage_2025-01-29_13-54-19_2051.png

@chris-y
Copy link
Contributor

chris-y commented Jan 29, 2025

...only on mobile though, on the web it doesn't. Weird.

@M4rtineski
Copy link
Contributor Author

...only on mobile though, on the web it doesn't. Weird.

For me it's neither.

@chris-y
Copy link
Contributor

chris-y commented Jan 30, 2025

Do we need notifications for pinning and locking?
Transfer might be worth having?

I'm not sure what these are for: "ModAdd" "ModBan" "ModHideCommunity"

AdmnPurge* probably isn't all that useful

@M4rtineski
Copy link
Contributor Author

Pinning and locking would only make sense if we had exclusion logic for the directory community. The potential of abuse and the relevance of those actions are very low so we can skip it as it's not worth the trouble.

Transfer is a big action worth noting but I think we would notice that if any of us or the bot was unmodded or if someone new was modded. The only situation where it would be useful that comes to my mind is that if we're mods at someone's community and the community gets transferred to an already existing mod that isn't us which is just not going to happen.

Not sure either about those. :x

Admin purge for posts and comments feels like it could be useful to see when an admin had (or felt like) to step in. Unless that's already covered under the mod actions then idk what would that be.

@chris-y
Copy link
Contributor

chris-y commented Jan 31, 2025

Ok, need to add unmodding as skipping that currently, but we definitely need to know about it.

@chris-y
Copy link
Contributor

chris-y commented Feb 2, 2025

Added unmodding notifications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants