Compensate for a currently-unsolved bug involving notifications with weird states.

This commit is contained in:
Ben Rog-Wilhelm 2023-08-25 02:23:25 -05:00
parent a32fe3e90c
commit cba354098f

View file

@ -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: