From bfb8e90b1e2160d2abe69fe664aa23447d8029ef Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Mon, 7 Feb 2022 15:09:01 +0800 Subject: [PATCH] Limit embed generation to just Audio and Video ## Ticket 761 Should Posts have embed links The original code also supported all text modes like PDF, all of which looked really bad, so it's unlikely someone is utilizing it. Disabling them until a designer can fix 'em. --- ui/constants/file_render_modes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/constants/file_render_modes.js b/ui/constants/file_render_modes.js index 573d7f830..445bc3706 100644 --- a/ui/constants/file_render_modes.js +++ b/ui/constants/file_render_modes.js @@ -20,7 +20,7 @@ export const COMIC = 'comic'; export const NON_STREAM_MODES = IS_WEB ? [CAD, COMIC] : [CAD, COMIC, ...TEXT_MODES]; export const AUTO_RENDER_MODES = [IMAGE].concat(TEXT_MODES); -export const WEB_SHAREABLE_MODES = AUTO_RENDER_MODES.concat(FLOATING_MODES); +export const WEB_SHAREABLE_MODES = FLOATING_MODES; export const DOWNLOAD = 'download'; export const APPLICATION = 'application';