fixes gallery

This commit is contained in:
2026-02-26 07:27:20 +01:00
parent 0032aec02f
commit d3fd32b004
14 changed files with 316 additions and 217 deletions

View File

@@ -106,6 +106,7 @@ class ArtworkResource extends JsonResource
'slug' => (string) $category->slug,
'name' => (string) $category->name,
'content_type_slug' => (string) ($category->contentType?->slug ?? ''),
'url' => $category->contentType ? $category->url : null,
])->values(),
'tags' => $this->tags->map(fn ($tag) => [
'id' => (int) $tag->id,