mirror of
https://github.com/friendica/friendica
synced 2025-04-29 23:44:22 +02:00
Merge pull request #7798 from MrPetovan/task/rework-photo-functions
Rework photo functions
This commit is contained in:
commit
6ba7b5961c
17 changed files with 367 additions and 270 deletions
|
@ -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']];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue