File::processNew now static and always throws exception on failure

This commit is contained in:
Mikael Nordfeldth
2014-06-02 02:08:48 +02:00
parent d6f52f5939
commit db443e9374
5 changed files with 68 additions and 41 deletions

View File

@@ -569,7 +569,11 @@ class TwitterImport
if (common_config('attachments', 'process_links')) {
if (!empty($status->entities) && !empty($status->entities->urls)) {
foreach ($status->entities->urls as $url) {
File::processNew($url->url, $notice->id);
try {
File::processNew($url->url, $notice->id);
} catch (ServerException $e) {
// Could not process attached URL
}
}
}
}