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

Feature Request: unban button in modlog if person viewing log is a moderator/admin #95

Open
jonsjava opened this issue Feb 22, 2024 · 0 comments

Comments

@jonsjava
Copy link

Right now, there's no tool to unban a user that was banned by a moderator that was not from a report.

In order to do it, I came up with a simple cURL call, but I'm sure it would be easy to implement an "unban" button.

endpoint and payload to unban:

Lemmy version < 0.19.x:

# change community_id and person_id to match
curl --request POST \
     --url https://lemmy.world/api/v3/community/ban_user \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'authorization: Bearer *****' \
     --data '
{
  "ban": false,
  "community_id": 1234,
  "person_id": 1234,
  "auth": "JWT_TOKEN_GOES_HERE"
}'

Lemmy version >= 0.19.x:

# change community_id and person_id to match
curl --request POST \
     --url https://lemmy.world/api/v3/community/ban_user \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'authorization: Bearer *****' \
     --data '
{
  "ban": false,
  "community_id": 1234,
  "person_id": 1234
}'
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

1 participant