mirror of
https://github.com/friendica/friendica
synced 2024-11-18 22:23:42 +00:00
Use function to fetch all valid extensions
This commit is contained in:
parent
107cc6f297
commit
833b104c25
1 changed files with 1 additions and 5 deletions
|
@ -431,11 +431,7 @@ function post_photo_item($hash, $allow_cid, $deny_cid, $allow_gid, $deny_gid, $f
|
|||
$arr['visible'] = $visibility;
|
||||
$arr['origin'] = 1;
|
||||
|
||||
$typetoext = [
|
||||
'image/jpeg' => 'jpg',
|
||||
'image/png' => 'png',
|
||||
'image/gif' => 'gif'
|
||||
];
|
||||
$typetoext = Images::supportedTypes();
|
||||
|
||||
// adds link to the thumbnail scale photo
|
||||
$arr['body'] = '[url=' . DI::baseUrl() . '/photos/' . $owner_record['nick'] . '/image/' . $hash . ']'
|
||||
|
|
Loading…
Reference in a new issue