fix 404 error

pull/225/head
Aevann 2024-02-29 15:49:04 +02:00
parent 2736c90d8e
commit 3d384757f5
1 changed files with 2 additions and 2 deletions

View File

@ -909,7 +909,7 @@ class User(Base):
elif self.modaction_notifications_count > 0:
return 'modactions'
elif self.offsite_notifications_count > 0:
return 'offsite'
return 'site_mentions'
return ''
@property
@ -921,7 +921,7 @@ class User(Base):
'modmail': '#f15387',
'posts': '#0000ff',
'modactions': '#1ad80d',
'offsite': '#805ad5',
'site_mentions': '#805ad5',
}
return colors[self.notifications_do] if self.notifications_do \
else colors['']