about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-11-25 01:42:51 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-11-25 01:42:51 +0100
commite7a7f88df7a763be6dad3a982829ef5a1b1dea09 (patch)
treeca434c3a4478cfabf828ec93aa53ad1dd2ef196a
parent00b8704a320595983acabb1692f0e58b88c9d640 (diff)
Fix OCR with delete & redraft (#12465)
-rw-r--r--app/javascript/mastodon/features/ui/components/focal_point_modal.js2
1 files changed, 1 insertions, 1 deletions
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 {