Ensure correct rendering for profile links

This commit is contained in:
nachtjasmin 2023-12-27 20:33:17 +01:00
parent 47d203d8a2
commit e14ae645d6
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View File

@ -419,7 +419,6 @@ class Header extends ImmutablePureComponent {
<div className='account__header__tabs__name'>
<h1>
<span dangerouslySetInnerHTML={displayNameHtml} />
<a href={account.get('url')} target='_blank' rel='noopener noreferrer'><span dangerouslySetInnerHTML={displayNameHtml} /></a>{isRemote ? <span> <IconButton icon='external-link' size={14} onClick={this.handleDisplayNameClick} /></span> : null}
<small>
<span>@{acct}</span> {lockedIcon}

View File

@ -1 +1,6 @@
// app/javascript/mastodon/features/account_timeline/components/header.jsx
// Because we provide a link to the profile instead of a plain <span>, we override
// the color to ensure it doesn't use the accent color.
.account__header__tabs__name a {
color: inherit;
}