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 Ban User functionality #77

Merged
merged 3 commits into from
Oct 24, 2023
Merged

Add Ban User functionality #77

merged 3 commits into from
Oct 24, 2023

Conversation

Demigodrick
Copy link
Contributor

Adds the ability for an admin to ban a user from the instance.

@db0
Copy link
Owner

db0 commented Oct 24, 2023

Thanks. Is this tested?

@Demigodrick
Copy link
Contributor Author

Yes, have tested it live and worked with no issues.

scrnsht
From the modlog - for the ban, time is unix time when the ban should expire. Not from the point of making the ban (hence the expired 54 years ago).

Now i think about it, is it worth adding that into the code?

@db0
Copy link
Owner

db0 commented Oct 24, 2023

The best actually would be to have the user pass a datetime object and convert it to the lemmy int on our end

@db0
Copy link
Owner

db0 commented Oct 24, 2023

I'll send a patch in a bit

@db0 db0 merged commit 715e84e into db0:main Oct 24, 2023
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

Successfully merging this pull request may close these issues.

2 participants