mirror of
https://github.com/flarum/core.git
synced 2025-10-14 16:34:26 +02:00
Gracefully handle non-existent/deleted users during rendering
This commit is contained in:
@@ -31,7 +31,9 @@ export default class PostHeaderUser extends Component {
|
||||
username()
|
||||
]
|
||||
),
|
||||
this.showCard() ? UserCard.component({user, className: 'user-card-popover fade', controlsButtonClass: 'btn btn-default btn-icon btn-sm btn-naked'}) : ''
|
||||
user && this.showCard()
|
||||
? UserCard.component({user, className: 'user-card-popover fade', controlsButtonClass: 'btn btn-default btn-icon btn-sm btn-naked'})
|
||||
: ''
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user