]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixes this issue: https://quitter.se/notice/4344600
authorhannes <h@nnesmannerhe.im>
Wed, 30 Dec 2015 01:54:48 +0000 (01:54 +0000)
committerhannes <h@nnesmannerhe.im>
Wed, 30 Dec 2015 01:54:48 +0000 (01:54 +0000)
classes/File.php

index 22ff237162924cc20256c7933d14282594a9d96d..24c4e6a232509d00459d1200e522639c11951757 100644 (file)
@@ -424,7 +424,11 @@ class File extends Managed_DataObject
             if (self::hashurl($url) !== $this->urlhash) {
                 // For indexing purposes, in case we do a lookup on the 'url' field.
                 // also we're fixing possible changes from http to https, or paths
-                $this->updateUrl($url);
+                try {
+                       $this->updateUrl($url);
+                } catch (ServerException $e) {
+                       //
+                }      
             }
             return $url;
         }
@@ -656,4 +660,4 @@ class File extends Managed_DataObject
         echo "DONE.\n";
         echo "Resuming core schema upgrade...";
     }
-}
+}
\ No newline at end of file