From: ThibG Date: Mon, 25 Nov 2019 00:42:51 +0000 (+0100) Subject: Fix OCR with delete & redraft (#12465) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=e7a7f88df7a763be6dad3a982829ef5a1b1dea09;p=mastodon.git Fix OCR with delete & redraft (#12465) --- diff --git a/app/javascript/mastodon/features/ui/components/focal_point_modal.js b/app/javascript/mastodon/features/ui/components/focal_point_modal.js index ddbe3961d..7d1509f71 100644 --- a/app/javascript/mastodon/features/ui/components/focal_point_modal.js +++ b/app/javascript/mastodon/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 {