mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-11 14:40:46 +00:00
Update InternalApiController
This commit is contained in:
parent
1e75b1688d
commit
e7521c2cb4
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,9 @@ class InternalApiController extends Controller
|
||||||
$cw = false;
|
$cw = false;
|
||||||
|
|
||||||
foreach($medias as $k => $media) {
|
foreach($medias as $k => $media) {
|
||||||
|
if($k + 1 > config('pixelfed.max_album_length')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$m = Media::findOrFail($media['id']);
|
$m = Media::findOrFail($media['id']);
|
||||||
if($m->profile_id !== $profile->id || $m->status_id) {
|
if($m->profile_id !== $profile->id || $m->status_id) {
|
||||||
abort(403, 'Invalid media id');
|
abort(403, 'Invalid media id');
|
||||||
|
|
Loading…
Reference in a new issue