mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 14:13:37 +08:00
Fix discussion list not rendering for guests
This commit is contained in:
parent
bc4a000078
commit
4fa18e248b
|
@ -35,7 +35,10 @@ export default class DiscussionListItem extends Component {
|
|||
*/
|
||||
this.subtree = new SubtreeRetainer(
|
||||
() => this.props.discussion.freshness,
|
||||
() => app.session.user && app.session.user.readTime().getTime(),
|
||||
() => {
|
||||
const time = app.session.user && app.session.user.readTime();
|
||||
return time && time.getTime();
|
||||
},
|
||||
() => this.active()
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user