Skip to content

Commit

Permalink
fix: Post--by-start-user not working
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Mar 23, 2022
1 parent 6df4101 commit 4d16eff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion framework/core/js/src/forum/components/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default abstract class Post<CustomAttrs extends IPostAttrs = IPostAttrs>
classes.push('Post--by-actor');
}

if (user && user?.id() === discussion.attribute('startUserId')) {
if (user && user === discussion.user()) {
classes.push('Post--by-start-user');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class ShowDiscussionController extends AbstractShowController
* {@inheritdoc}
*/
public $include = [
'user',
'posts',
'posts.discussion',
'posts.user',
Expand Down

0 comments on commit 4d16eff

Please sign in to comment.