mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +08:00
fix: Post--by-actor
not showing when comparing user instances as discussion.user()
is not loaded (#3170)
This commit is contained in:
parent
7242b18ff0
commit
d82ae27231
|
@ -120,7 +120,7 @@ export default class Post extends Component {
|
|||
/**
|
||||
* Get the post's classes.
|
||||
*
|
||||
* @param string classes
|
||||
* @param existing string
|
||||
* @returns {string[]}
|
||||
*/
|
||||
classes(existing) {
|
||||
|
@ -137,7 +137,7 @@ export default class Post extends Component {
|
|||
classes.push('Post--by-actor');
|
||||
}
|
||||
|
||||
if (user && user === discussion.user()) {
|
||||
if (user && user.id() === discussion.attribute('startUserId')) {
|
||||
classes.push('Post--by-start-user');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user