Remove support for Rumble video embeds

This commit is contained in:
Alex Gleason
2023-09-19 13:10:57 -05:00
parent d0b6bfc96f
commit 1e71923f6d
7 changed files with 17 additions and 159 deletions

View File

@ -198,10 +198,4 @@ describe('normalizeStatus()', () => {
expect(card.type).toEqual('link');
expect(card.provider_url).toEqual('https://soapbox.pub');
});
it('preserves Truth Social external_video_id', () => {
const status = require('soapbox/__fixtures__/truthsocial-status-with-external-video.json');
const result = normalizeStatus(status);
expect(result.media_attachments.get(0)?.external_video_id).toBe('vwfnq9');
});
});

View File

@ -15,7 +15,6 @@ import { mergeDefined } from 'soapbox/utils/normalizers';
export const AttachmentRecord = ImmutableRecord({
blurhash: undefined,
description: '',
external_video_id: null as string | null, // TruthSocial
id: '',
meta: ImmutableMap(),
pleroma: ImmutableMap(),