Skip to content

Commit 7540ede

Browse files
authored
feat: allow modifying the discussion title on PostsUserPage (#4031)
1 parent 77d1a3d commit 7540ede

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

framework/core/js/src/forum/components/PostsUserPage.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class PostsUserPage extends UserPage {
7070
<li>
7171
<div className="PostsUserPage-discussion">
7272
{app.translator.trans('core.forum.user.in_discussion_text', {
73-
discussion: <Link href={app.route.post(post)}>{post.discussion().title()}</Link>,
73+
discussion: <Link href={app.route.post(post)}>{this.discussionTitle(post)}</Link>,
7474
})}
7575
</div>
7676

@@ -142,4 +142,8 @@ export default class PostsUserPage extends UserPage {
142142

143143
return results;
144144
}
145+
146+
discussionTitle(post: Post): string {
147+
return post.discussion().title();
148+
}
145149
}

0 commit comments

Comments
 (0)