mirror of
https://github.com/mastodon/mastodon.git
synced 2026-10-01 15:27:13 -05:00
Redesign: Update thread page title for messages (#40508)
This commit is contained in:
@@ -575,20 +575,30 @@ class Status extends ImmutablePureComponent {
|
||||
onTranslate: this.handleHotkeyTranslate,
|
||||
};
|
||||
|
||||
const pageTitle = status.visibility === 'direct' ? (
|
||||
<FormattedMessage
|
||||
id='status.title'
|
||||
defaultMessage='Post by {name}'
|
||||
values={{
|
||||
name: <DisplayNameSimple account={account} />
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<FormattedMessage
|
||||
id='status.title.message'
|
||||
defaultMessage='Message by {name}'
|
||||
values={{
|
||||
name: <DisplayNameSimple account={account} />
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
return (
|
||||
<Column bindToDocument={!multiColumn} label={intl.formatMessage(messages.detailedStatus)}>
|
||||
{isRedesignEnabled() ? (
|
||||
<ColumnHeader
|
||||
withBackButton
|
||||
title={
|
||||
<FormattedMessage
|
||||
id='status.title'
|
||||
defaultMessage='Post by {name}'
|
||||
values={{
|
||||
name: <DisplayNameSimple account={account} />
|
||||
}}
|
||||
/>
|
||||
}
|
||||
title={pageTitle}
|
||||
extraButtons={
|
||||
<ColumnSettingsMenu
|
||||
label={
|
||||
|
||||
@@ -1445,6 +1445,7 @@
|
||||
"status.show_more_all": "Show more for all",
|
||||
"status.show_original": "Show original",
|
||||
"status.title": "Post by {name}",
|
||||
"status.title.message": "Message by {name}",
|
||||
"status.title.with_attachments": "{user} posted {attachmentCount, plural, one {an attachment} other {{attachmentCount} attachments}}",
|
||||
"status.translate": "Translate",
|
||||
"status.translated_from_with": "Translated from {lang} using {provider}",
|
||||
|
||||
Reference in New Issue
Block a user