mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update ApiV1Controller, preserve album order. Fixes #3708
This commit is contained in:
parent
5cf9ba785f
commit
deb2697115
1 changed files with 1 additions and 0 deletions
|
@ -2819,6 +2819,7 @@ class ApiV1Controller extends Controller
|
|||
if($m->profile_id !== $user->profile_id || $m->status_id) {
|
||||
abort(403, 'Invalid media id');
|
||||
}
|
||||
$m->order = $k + 1;
|
||||
$m->status_id = $status->id;
|
||||
$m->save();
|
||||
array_push($mimes, $m->mime);
|
||||
|
|
Loading…
Reference in a new issue