Use function to fetch all valid extensions
This commit is contained in:
parent
107cc6f297
commit
833b104c25
|
@ -431,11 +431,7 @@ function post_photo_item($hash, $allow_cid, $deny_cid, $allow_gid, $deny_gid, $f
|
||||||
$arr['visible'] = $visibility;
|
$arr['visible'] = $visibility;
|
||||||
$arr['origin'] = 1;
|
$arr['origin'] = 1;
|
||||||
|
|
||||||
$typetoext = [
|
$typetoext = Images::supportedTypes();
|
||||||
'image/jpeg' => 'jpg',
|
|
||||||
'image/png' => 'png',
|
|
||||||
'image/gif' => 'gif'
|
|
||||||
];
|
|
||||||
|
|
||||||
// adds link to the thumbnail scale photo
|
// adds link to the thumbnail scale photo
|
||||||
$arr['body'] = '[url=' . DI::baseUrl() . '/photos/' . $owner_record['nick'] . '/image/' . $hash . ']'
|
$arr['body'] = '[url=' . DI::baseUrl() . '/photos/' . $owner_record['nick'] . '/image/' . $hash . ']'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user