Update Api StatusTransformer, fix album order bug

pull/547/head
Daniel Supernault 7 years ago
parent ad47733cf0
commit 0f35996ed7
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -59,7 +59,7 @@ class StatusTransformer extends Fractal\TransformerAbstract
public function includeMediaAttachments(Status $status)
{
$media = $status->media;
$media = $status->media()->orderBy('order')->get();
return $this->collection($media, new MediaTransformer());
}

Loading…
Cancel
Save