Fix custom emojis not being rendered in status prepend (#3342)
This commit is contained in:
parent
5c358ceaf1
commit
3c1bf72e1a
@ -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':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user