mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-21 12:33:17 +00:00
Merge pull request #4150 from pixelfed/staging
Update ap helpers, fix unset media name bug
This commit is contained in:
commit
372cc90c08
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue