mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-30 08:20:46 +00:00
Update Api StatusTransformer, fix album order bug
This commit is contained in:
parent
ad47733cf0
commit
0f35996ed7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue