diff --git a/framework/core/js/src/forum/components/PostStream.js b/framework/core/js/src/forum/components/PostStream.js index 570b45b89f..9d192d7d66 100644 --- a/framework/core/js/src/forum/components/PostStream.js +++ b/framework/core/js/src/forum/components/PostStream.js @@ -78,11 +78,22 @@ export default class PostStream extends Component { content = ; } - return ( + const postStreamElement = (
{content}
); + + if (post && post.id() === this.discussion.data.relationships.firstPost?.data.id && this.afterFirstPostItems().toArray().length > 0) { + return m.fragment({ ...attrs }, [ + postStreamElement, +
+ {this.afterFirstPostItems().toArray()} +
, + ]); + } + + return postStreamElement; }); if (!viewingEnd && posts[this.stream.visibleEnd - this.stream.visibleStart - 1]) { @@ -117,6 +128,15 @@ export default class PostStream extends Component { ); } + /** + * @returns {ItemList} + */ + afterFirstPostItems() { + const items = new ItemList(); + + return items; + } + /** * @returns {ItemList} */