mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
feat: allow modifying the discussion title on PostsUserPage (#4031)
This commit is contained in:
@@ -70,7 +70,7 @@ export default class PostsUserPage extends UserPage {
|
||||
<li>
|
||||
<div className="PostsUserPage-discussion">
|
||||
{app.translator.trans('core.forum.user.in_discussion_text', {
|
||||
discussion: <Link href={app.route.post(post)}>{post.discussion().title()}</Link>,
|
||||
discussion: <Link href={app.route.post(post)}>{this.discussionTitle(post)}</Link>,
|
||||
})}
|
||||
</div>
|
||||
|
||||
@@ -142,4 +142,8 @@ export default class PostsUserPage extends UserPage {
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
discussionTitle(post: Post): string {
|
||||
return post.discussion().title();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user