Skip to content

Do not try to calculate expiry if infraction is permanent on reapply#1875

Merged
ChrisLovering merged 2 commits into
mainfrom
ks123/bugfix/reapply-infraction
Oct 16, 2021
Merged

Do not try to calculate expiry if infraction is permanent on reapply#1875
ChrisLovering merged 2 commits into
mainfrom
ks123/bugfix/reapply-infraction

Conversation

@ks129
Copy link
Copy Markdown
Contributor

@ks129 ks129 commented Oct 16, 2021

Fixes #1870
Solves BOT-1NS

Currently, if a user with permanent mute rejoins, it still tries to calculate the remaining time from None. This PR removes calculation for infractions where expiry is None.

@ks129 ks129 added t: bug Something isn't working a: moderation Related to community moderation functionality: (moderation, defcon, verification) labels Oct 16, 2021
Copy link
Copy Markdown
Contributor

@TizzySaurus TizzySaurus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@ChrisLovering ChrisLovering merged commit 3589eea into main Oct 16, 2021
@ChrisLovering ChrisLovering deleted the ks123/bugfix/reapply-infraction branch October 16, 2021 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: moderation Related to community moderation functionality: (moderation, defcon, verification) hacktoberfest-accepted t: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: object of type 'NoneType' has no len()

3 participants