Fix custom emojis not being rendered in status prepend (#3342)

This commit is contained in:
Claire 2026-01-10 13:11:50 +01:00 committed by GitHub
parent 5c358ceaf1
commit 3c1bf72e1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ import StarIcon from '@/material-icons/400-24px/star-fill.svg?react';
import { Icon } from 'flavours/glitch/components/icon'; import { Icon } from 'flavours/glitch/components/icon';
import { me } from 'flavours/glitch/initial_state'; import { me } from 'flavours/glitch/initial_state';
import { Permalink } from './permalink'; import { LinkedDisplayName } from './display_name';
export default class StatusPrepend extends PureComponent { export default class StatusPrepend extends PureComponent {
@ -30,20 +30,12 @@ export default class StatusPrepend extends PureComponent {
Message = () => { Message = () => {
const { type, account } = this.props; const { type, account } = this.props;
let link = ( let link = (
<Permalink <LinkedDisplayName
to={`/@${account.get('acct')}`} displayProps={{
href={account.get('url')} account: account,
className='status__display-name' variant: 'simple'
data-hover-card-account={account.get('id')} }}
> />
<bdi>
<strong
dangerouslySetInnerHTML={{
__html : account.get('display_name_html') || account.get('username'),
}}
/>
</bdi>
</Permalink>
); );
switch (type) { switch (type) {
case 'reblogged_by': case 'reblogged_by':