mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13: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) {
|
if($m->profile_id !== $user->profile_id || $m->status_id) {
|
||||||
abort(403, 'Invalid media id');
|
abort(403, 'Invalid media id');
|
||||||
}
|
}
|
||||||
|
$m->order = $k + 1;
|
||||||
$m->status_id = $status->id;
|
$m->status_id = $status->id;
|
||||||
$m->save();
|
$m->save();
|
||||||
array_push($mimes, $m->mime);
|
array_push($mimes, $m->mime);
|
||||||
|
|
Loading…
Reference in a new issue