Skip to content

Commit

Permalink
ListAlbum fix (#2753)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Nov 27, 2024
1 parent f8fedaa commit 46d58c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Actions/Album/ListAlbums.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private function shorten(string $title): string
$resulting_len = $title_lengths->sum();
} while ($len_to_reduce < $resulting_len);

$title_split = $title_split->map(fn ($v) => Str::limit($v, $unit_target_len, ''));
$title_split = $title_split->map(fn ($v) => Str::limit($v, $unit_target_len > 0 ? $unit_target_len : 0, ''));

return implode('/', $title_split->all()) . '/' . $last_elem;
}
Expand Down

0 comments on commit 46d58c5

Please sign in to comment.