mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update MediaTransformers, add default blurhash attribute
This commit is contained in:
parent
896452c74c
commit
3f14a4c412
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ class MediaTransformer extends Fractal\TransformerAbstract
|
|||
'text_url' => null,
|
||||
'meta' => null,
|
||||
'description' => $media->caption,
|
||||
'blurhash' => $media->blurhash
|
||||
'blurhash' => $media->blurhash ?? 'U4Rfzst8?bt7ogayj[j[~pfQ9Goe%Mj[WBay'
|
||||
];
|
||||
|
||||
if($media->width && $media->height) {
|
||||
|
|
|
@ -24,7 +24,7 @@ class MediaTransformer extends Fractal\TransformerAbstract
|
|||
'filter_name' => $media->filter_name,
|
||||
'filter_class' => $media->version == 1 ? $media->filter_class : null,
|
||||
'mime' => $media->mime,
|
||||
'blurhash' => $media->blurhash
|
||||
'blurhash' => $media->blurhash ?? 'U4Rfzst8?bt7ogayj[j[~pfQ9Goe%Mj[WBay'
|
||||
];
|
||||
|
||||
if($media->width && $media->height) {
|
||||
|
|
Loading…
Reference in a new issue