From: ThibG Date: Mon, 25 Nov 2019 00:42:51 +0000 (+0100) Subject: [Glitch] Fix OCR with delete & redraft X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=7ce75755491f964d5679ff617297623480621c5a;p=mastodon.git [Glitch] Fix OCR with delete & redraft Port e7a7f88df7a763be6dad3a982829ef5a1b1dea09 to glitch-soc Signed-off-by: Thibaut Girka --- diff --git a/app/javascript/flavours/glitch/features/ui/components/focal_point_modal.js b/app/javascript/flavours/glitch/features/ui/components/focal_point_modal.js index 2846d53d7..77e4bbfa5 100644 --- a/app/javascript/flavours/glitch/features/ui/components/focal_point_modal.js +++ b/app/javascript/flavours/glitch/features/ui/components/focal_point_modal.js @@ -214,7 +214,7 @@ class FocalPointModal extends ImmutablePureComponent { langPath: `${assetHost}/ocr/lang-data`, }); - let media_url = media.get('file'); + let media_url = media.get('url'); if (window.URL && URL.createObjectURL) { try {