Skip to content

Commit

Permalink
fix(tags): fix tag mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt committed Aug 28, 2024
1 parent 8aaad88 commit b49b3e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getCreateCharacter() {
$contentWarnings = CharacterImage::whereNotNull('content_warnings')->pluck('content_warnings')->flatten()->map(function($warnings) {
return collect($warnings)->mapWithKeys(function($warning) {
$lower = strtolower(trim($warning));
return ['tag' => ucfirst($lower)];
return [$lower => ucwords($lower)];
});
})->collapse()->unique()->sort()->toArray();

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/BrowseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public function getCharacters(Request $request) {
$contentWarnings = CharacterImage::whereNotNull('content_warnings')->pluck('content_warnings')->flatten()->map(function($warnings) {
return collect($warnings)->mapWithKeys(function($warning) {
$lower = strtolower(trim($warning));
return [$lower => ucfirst($lower)];
return [$lower => ucwords($lower)];
});
})->collapse()->unique()->sort()->toArray();

Expand Down
2 changes: 1 addition & 1 deletion resources/views/character/_image_info.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
->map(function ($warnings) {
return collect($warnings)->mapWithKeys(function ($warning) {
$lower = strtolower(trim($warning));
return [$lower => ucfirst($lower)];
return [$lower => ucwords($lower)];
});
})
->collapse()
Expand Down

0 comments on commit b49b3e5

Please sign in to comment.