]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix OCR with delete & redraft
authorThibG <thib@sitedethib.com>
Mon, 25 Nov 2019 00:42:51 +0000 (01:42 +0100)
committerThibaut Girka <thib@sitedethib.com>
Sat, 30 Nov 2019 16:36:49 +0000 (17:36 +0100)
Port e7a7f88df7a763be6dad3a982829ef5a1b1dea09 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/features/ui/components/focal_point_modal.js

index 2846d53d7dc197b8f37e8c16676858c3c4e78422..77e4bbfa5fabaa866eb1e6fc9c7a64ebe447136f 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 {