Merge pull request #7798 from MrPetovan/task/rework-photo-functions

Rework photo functions
This commit is contained in:
Michael Vogel 2019-11-02 21:20:38 +01:00 committed by GitHub
commit 6ba7b5961c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 367 additions and 270 deletions

View file

@ -25,6 +25,7 @@ use Friendica\Protocol\Diaspora;
use Friendica\Protocol\OStatus;
use Friendica\Protocol\Salmon;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Images;
use Friendica\Util\Network;
use Friendica\Util\Strings;
@ -719,7 +720,7 @@ class Contact extends BaseObject
}
// Creating the path to the avatar, beginning with the file suffix
$types = Image::supportedTypes();
$types = Images::supportedTypes();
if (isset($types[$avatar['type']])) {
$file_suffix = $types[$avatar['type']];
}