mirror of
https://github.com/flarum/core.git
synced 2025-10-15 17:04:26 +02:00
Gracefully handle non-existent/deleted users during rendering
This commit is contained in:
@@ -24,7 +24,7 @@ export default class PostComment extends Component {
|
||||
|
||||
this.subtree = new SubtreeRetainer(
|
||||
() => this.props.post.freshness,
|
||||
() => this.props.post.user().freshness,
|
||||
() => this.props.post.user() && this.props.post.user().freshness,
|
||||
this.postHeaderUser.showCard
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user