]> cat aescling's git repositories - mastodon.git/commitdiff
Fix OCR with delete & redraft (#12465)
authorThibG <thib@sitedethib.com>
Mon, 25 Nov 2019 00:42:51 +0000 (01:42 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 25 Nov 2019 00:42:51 +0000 (01:42 +0100)
app/javascript/mastodon/features/ui/components/focal_point_modal.js

index ddbe3961d23b96474cc879b2156a6eeeb1a7fbba..7d1509f7113522152dadf71e91e1028ecd5faff3 100644 (file)
@@ -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 {