Redesign: Update thread page title for messages (#40508)

This commit is contained in:
diondiondion
2026-09-15 09:17:49 +00:00
committed by GitHub
parent 5e2f28047d
commit dac5d010f9
2 changed files with 20 additions and 9 deletions

View File

@@ -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={

View File

@@ -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}",