Skip to content

Commit cb3cf0b

Browse files
committed
fix complaints from copilot
1 parent 578f14f commit cb3cf0b

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

app/Actions/Album/PositionData.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use App\Enum\SizeVariantType;
1313
use App\Http\Resources\Collections\PositionDataResource;
1414
use App\Models\Album;
15-
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
1615
use Illuminate\Database\Eloquent\Relations\HasMany;
1716

1817
class PositionData
@@ -25,13 +24,6 @@ public function get(AbstractAlbum $album, bool $include_sub_albums = false): Pos
2524

2625
$photo_relation
2726
->with([
28-
'albums' => function (BelongsToMany $b): void {
29-
// The album is required for photos to properly
30-
// determine access and visibility rights; but we
31-
// don't need to determine the cover and thumbnail for
32-
// each album
33-
$b->without(['cover', 'thumb']);
34-
},
3527
'statistics',
3628
'size_variants' => function (HasMany $r): void {
3729
// The web GUI only uses the small and thumb size

app/Actions/Albums/PositionData.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ public function do(): PositionDataResource
3838
$photo_query = $this->photo_query_policy->applySearchabilityFilter(
3939
query: Photo::query()
4040
->with([
41-
// TODO: FIX ME.
42-
'albums' => function ($b): void {
43-
// The album is required for photos to properly
44-
// determine access and visibility rights; but we
45-
// don't need to determine the cover and thumbnail for
46-
// each album
47-
$b->without(['cover', 'thumb']);
48-
},
4941
'statistics',
5042
'size_variants' => function ($r): void {
5143
// The web GUI only uses the small and thumb size

0 commit comments

Comments
 (0)