-
-
Notifications
You must be signed in to change notification settings - Fork 844
feat: make it easier to add content after the first post #4186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
<div className="PostStream-item" {...attrs}> | ||
{content} | ||
</div> | ||
); | ||
|
||
if (i === 0 && this.afterFirstPostItems().toArray().length > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the intent after the first post of the discussion, or after the first of the visible posts? because i === 0 will always be the first of the currently visible posts, not necessarily the first post of the discussion.
For example, if you are viewing posts 200 - 220 of a discussion, the 200th is the first (i === 0)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that was most certainly the intention. Pushed a change which works much better now
Needs to be back ported to 1.x as well
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
@SychO9 seems like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Don't worry about the phpstan failure, will look into that separately.
2.x port of #4050
Progresses #4060
Changes proposed in this pull request:
Reviewers should focus on:
Screenshot
Necessity
Confirmed
composer test
).Required changes: