Compensate for a currently-unsolved bug involving notifications with weird states.
This commit is contained in:
parent
a32fe3e90c
commit
cba354098f
1 changed files with 4 additions and 1 deletions
|
@ -382,8 +382,11 @@ class Comment(CreatedBase):
|
|||
return "Notification"
|
||||
elif self.sentto == MODMAIL_ID:
|
||||
return "Sent to admins"
|
||||
else:
|
||||
elif self.senttouser is not None:
|
||||
return f"Sent to @{self.senttouser.username}"
|
||||
else:
|
||||
# This shouldn't actually be possible.
|
||||
return ""
|
||||
|
||||
@lazy
|
||||
def voted_display(self, v) -> int:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue