diff --git a/app/javascript/mastodon/features/notifications_v2/components/embedded_status.tsx b/app/javascript/mastodon/features/notifications_v2/components/embedded_status.tsx
index 8e5e72b6a..49bf364f0 100644
--- a/app/javascript/mastodon/features/notifications_v2/components/embedded_status.tsx
+++ b/app/javascript/mastodon/features/notifications_v2/components/embedded_status.tsx
@@ -6,6 +6,7 @@ import { useHistory } from 'react-router-dom';
import type { List as ImmutableList, RecordOf } from 'immutable';
+import type { ApiMentionJSON } from '@/mastodon/api_types/statuses';
import { AnimateEmojiProvider } from '@/mastodon/components/emoji/context';
import BarChart4BarsIcon from '@/material-icons/400-24px/bar_chart_4_bars.svg?react';
import PhotoLibraryIcon from '@/material-icons/400-24px/photo_library.svg?react';
@@ -18,7 +19,7 @@ import { useAppSelector, useAppDispatch } from 'mastodon/store';
import { EmbeddedStatusContent } from './embedded_status_content';
-export type Mention = RecordOf<{ url: string; acct: string }>;
+export type Mention = RecordOf
;
export const EmbeddedStatus: React.FC<{ statusId: string }> = ({
statusId,
@@ -86,12 +87,9 @@ export const EmbeddedStatus: React.FC<{ statusId: string }> = ({
}
// Assign status attributes to variables with a forced type, as status is not yet properly typed
- const contentHtml = status.get('contentHtml') as string;
- const contentWarning = status.get('spoilerHtml') as string;
+ const hasContentWarning = !!status.get('spoiler_text');
const poll = status.get('poll');
- const language = status.get('language') as string;
- const mentions = status.get('mentions') as ImmutableList;
- const expanded = !status.get('hidden') || !contentWarning;
+ const expanded = !status.get('hidden') || !hasContentWarning;
const mediaAttachmentsSize = (
status.get('media_attachments') as ImmutableList
).size;
@@ -109,20 +107,16 @@ export const EmbeddedStatus: React.FC<{ statusId: string }> = ({
- {contentWarning && (
-