]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
[Embed] Fix bug where we we're losing track of a file, in case the image needed to...
authorMiguel Dantas <biodantasgs@gmail.com>
Sun, 14 Jul 2019 23:03:56 +0000 (00:03 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Sat, 3 Aug 2019 16:49:10 +0000 (17:49 +0100)
plugins/Embed/EmbedPlugin.php

index b7b4640cc55cfe67bce92fd525acb041a17b1731..c7cf4d228c2a89fda8f2ecbbeb2d8fffc92477bf 100644 (file)
@@ -549,8 +549,10 @@ class EmbedPlugin extends Plugin
                 }
             } else {
                 throw new AlreadyFulfilledException('A thumbnail seems to already exist for remote file with id==' .
-                                                    $thumbnail->file_id);
+                                                    $thumbnail->file_id . ' at path ' . $fullpath);
             }
+        } catch (AlreadyFulfilledException $e) {
+            // Carry on
         } catch (Exception $err) {
             common_log(LOG_ERR, "Went to write a thumbnail to disk in EmbedPlugin::storeRemoteThumbnail " .
                        "but encountered error: {$err}");