Merge pull request #253 from LemmyNet/fix_unban_1

Fixing unban. Fixes #248
This commit is contained in:
Dessalines 2021-04-07 13:06:18 -04:00 committed by GitHub
commit 479b0f1163
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1383,7 +1383,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
}
handleModBanBothSubmit(i: PostListing, event?: any) {
event.preventDefault();
if (event) event.preventDefault();
if (i.state.banType == BanType.Community) {
// If its an unban, restore all their data