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

PersonBan shows true even after ban expires #2177

Closed
dessalines opened this issue Mar 30, 2022 · 0 comments
Closed

PersonBan shows true even after ban expires #2177

dessalines opened this issue Mar 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@dessalines
Copy link
Member

lemmy=# select banned, ban_expires from person where name = 'xxx';                                                               
banned |     ban_expires                                                                                                            
 --------+---------------------                                                                                                        
 t      | 2022-03-29 00:50:50

This isn't an issue on community_ban, because joins are necessary there.

The solution (at least best one I can think of)

  • Add a periodically running job to find those where ban_expires < now, and set the banned = false
@dessalines dessalines added the bug Something isn't working label Mar 30, 2022
Nutomic added a commit that referenced this issue Mar 31, 2022
Adding a ban expires update job. Fixes #2177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant