1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-28 10:46:49 +00:00

Merge pull request #4150 from pixelfed/staging

Update ap helpers, fix unset media name bug
This commit is contained in:
daniel 2023-02-03 21:44:17 -07:00 committed by GitHub
commit 372cc90c08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -674,7 +674,7 @@ class Helpers {
}
$blurhash = isset($media['blurhash']) ? $media['blurhash'] : 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->blurhash = $blurhash;