mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 17:53:16 +00:00
Update MediaTransformer, fix type case bug. Fixes #3281
This commit is contained in:
parent
5e25689ec2
commit
c166925319
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class MediaTransformer extends Fractal\TransformerAbstract
|
||||||
{
|
{
|
||||||
$res = [
|
$res = [
|
||||||
'id' => (string) $media->id,
|
'id' => (string) $media->id,
|
||||||
'type' => $media->activityVerb(),
|
'type' => strtolower($media->activityVerb()),
|
||||||
'url' => $media->url(),
|
'url' => $media->url(),
|
||||||
'remote_url' => null,
|
'remote_url' => null,
|
||||||
'preview_url' => $media->thumbnailUrl(),
|
'preview_url' => $media->thumbnailUrl(),
|
||||||
|
|
Loading…
Reference in a new issue