Update ap helpers, fix unset media name bug

This commit is contained in:
Daniel Supernault 2023-02-03 21:42:30 -07:00
parent c62ac0259d
commit 083f506baf
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -674,7 +674,7 @@ class Helpers {
} }
$blurhash = isset($media['blurhash']) ? $media['blurhash'] : null; $blurhash = isset($media['blurhash']) ? $media['blurhash'] : null;
$license = isset($media['license']) ? License::nameToId($media['license']) : null; $license = isset($media['license']) ? License::nameToId($media['license']) : null;
$caption = $media['name'] ? Purify::clean($media['name']) : null; $caption = isset($media['name']) ? Purify::clean($media['name']) : null;
$media = new Media(); $media = new Media();
$media->blurhash = $blurhash; $media->blurhash = $blurhash;