mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:10:12 +00:00
Improved resource id creation
This commit is contained in:
parent
d90b93cfda
commit
a3af6807ac
9 changed files with 23 additions and 37 deletions
|
@ -4614,7 +4614,7 @@ function save_media_to_database($mediatype, $media, $type, $album, $allow_cid, $
|
|||
$height = $Image->getHeight();
|
||||
|
||||
// create a new resource-id if not already provided
|
||||
$hash = ($photo_id == null) ? photo_new_resource() : $photo_id;
|
||||
$hash = ($photo_id == null) ? Photo::newResource() : $photo_id;
|
||||
|
||||
if ($mediatype == "photo") {
|
||||
// upload normal image (scales 0, 1, 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue