Session: Fixed error when logged out

This commit is contained in:
Jaakko Keränen 2024-01-15 10:46:37 +02:00
parent 78f5cb00b4
commit b7b312e32d
No known key found for this signature in database
GPG Key ID: BACCFCFB98DB2EDC
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ Bubble is open source:
return f'=> /dashboard {self.user.avatar} {self.user.name}{notifs}{mode}\n'
def feed_flair(self, post, context):
if self.user.flags & User.HIDE_FLAIRS_FLAG:
if self.user and self.user.flags & User.HIDE_FLAIRS_FLAG:
# Node flairs in feeds.
return ''
flair = User.render_flair(post.poster_flair,