Update ApiV1Controller, preserve album order. Fixes #3708

This commit is contained in:
Daniel Supernault 2023-03-11 05:49:39 -07:00
parent 5cf9ba785f
commit deb2697115
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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);