Browse Source

Fix custom emojis not displaying in CWs and fav/boost notifications (#37306)

pull/1371/head
Claire 3 months ago committed by Misty De Meo
parent
commit
fe6c8a1160
No known key found for this signature in database
GPG Key ID: 76CF846A2F674B2C
  1. 2
      app/javascript/mastodon/components/content_warning.tsx
  2. 2
      app/javascript/mastodon/features/notifications_v2/components/embedded_status_content.tsx

2
app/javascript/mastodon/components/content_warning.tsx

@ -31,7 +31,7 @@ export const ContentWarning: React.FC<{
<EmojiHTML
as='span'
htmlString={text}
extraEmojis={status.get('emoji') as List<CustomEmoji>}
extraEmojis={status.get('emojis') as List<CustomEmoji>}
/>
</StatusBanner>
);

2
app/javascript/mastodon/features/notifications_v2/components/embedded_status_content.tsx

@ -34,7 +34,7 @@ export const EmbeddedStatusContent: React.FC<{
className={className}
lang={status.get('language') as string}
htmlString={status.get('contentHtml') as string}
extraEmojis={status.get('emoji') as List<CustomEmoji>}
extraEmojis={status.get('emojis') as List<CustomEmoji>}
/>
);
};

Loading…
Cancel
Save