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

Add a page in Community settings to manage banned users #462

Open
DraconicNEO opened this issue Oct 11, 2024 · 5 comments
Open

Add a page in Community settings to manage banned users #462

DraconicNEO opened this issue Oct 11, 2024 · 5 comments

Comments

@DraconicNEO
Copy link

Is your feature request related to a problem? Please describe.
If I need to ban a known ban evader's alts I can't actually ban them from the community normally until they post a comment. Another situation is if someone was banned a long time ago and I want to lift their ban I also have to find one of their posts or comments in the community to do so, which might be difficult. The only alternative is manually using the API through browser DevTools or Postman but that's clunky and not user friendly.

Describe the solution you'd like
It would be very nice if we had a page in the community settings screen where you can see a list of all banned users, with options to unban them there, or to add more users to the list. Similar to the page that lets you manage your moderator team.

Describe alternatives you've considered
I don't really think there is any good alternative, using the API manually is clunky and having a UI to manage bans is a superior solution than requiring mods to use the API in the situations I described.

Additional context
No response

@Xyphyn
Copy link
Owner

Xyphyn commented Oct 11, 2024

I was gonna ask this, but I literally couldn't find the API call to manage banned users. Where did you find that?

@DraconicNEO
Copy link
Author

You make a call to
https://instance.tld/api/v3/community/ban_user
to ban and unban users from a community

Request data looks like this:
{"community_id":[Internal ID of the community],"person_id":[UserID of the person],"ban":true,"remove_data":false,"reason":"[reason text]"}

Whether it is a ban or an unban is determined by if ban is true or false, true = banned, false = unbanned.

@Xyphyn
Copy link
Owner

Xyphyn commented Oct 11, 2024

That's the API call to ban someone. There's no API call to retrieve all the currently banned users. I could technically store it locally, but that's a bad idea for many reasons

@DraconicNEO
Copy link
Author

That's the API call to ban someone. There's no API call to retrieve all the currently banned users. I could technically store it locally, but that's a bad idea for many reasons

Oh, yeah that might be difficult. I'm not really sure how or if there is a native API call to do that.

@Xyphyn
Copy link
Owner

Xyphyn commented Oct 12, 2024

Re read the issue. You want to be able to just ban a user spontaneously, will add soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants