aboutsummaryrefslogtreecommitdiff
path: root/classes/File.php
diff options
context:
space:
mode:
authorhannes <h@nnesmannerhe.im>2015-12-30 01:54:48 +0000
committerhannes <h@nnesmannerhe.im>2015-12-30 01:54:48 +0000
commit08be0e5c6769ca67e3f990b09cf0be208fa2bc7d (patch)
tree452fced2eeb7638ff03932df9f28e8e6b044b07c /classes/File.php
parentc0ef167514e97e0c64e49da090d3a352ed86bdb4 (diff)
downloadgnu-social-08be0e5c6769ca67e3f990b09cf0be208fa2bc7d.tar
gnu-social-08be0e5c6769ca67e3f990b09cf0be208fa2bc7d.zip
fixes this issue: https://quitter.se/notice/4344600
Diffstat (limited to 'classes/File.php')
-rw-r--r--classes/File.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/File.php b/classes/File.php
index 22ff237162..24c4e6a232 100644
--- a/classes/File.php
+++ b/classes/File.php
@@ -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