Keep the old error message on updateAvatar

This commit is contained in:
Mikael Nordfeldth 2015-01-18 02:48:39 +01:00
parent 010824c4b5
commit 5d9e9aaaf5
1 changed files with 1 additions and 1 deletions

View File

@ -1267,7 +1267,7 @@ class Ostatus_profile extends Managed_DataObject
if (!$response->isOk()) {
// TRANS: Server exception. %s is a URL.
throw new ServerException(sprintf(_m('Unable to fetch avatar from %s.').':%s', $url, $response->getReasonPhrase()));
throw new ServerException(sprintf(_m('Unable to fetch avatar from %s.'), $url));
}
// FIXME: make sure it's an image here instead of _after_ writing to a file?
file_put_contents($response->getBody(), $temp_filename);