Skip to content

Commit

Permalink
fix(content warnings): included warnings not querying correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt authored Oct 3, 2024
1 parent 8c3192e commit 16113ed
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Http/Controllers/BrowseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,12 @@ private function handleMasterlistSearch(Request $request, $query, $imageQuery, $
}

foreach ($includedTags as $tag) {
if ($image->content_warnings && in_array($tag, $image->content_warnings)) {
return true;
if ($image->content_warnings) {
foreach ($image->content_warnings as $warning) {
if (strtolower($warning) == strtolower($tag)) {
return true;
}
}
}
}

Expand Down

0 comments on commit 16113ed

Please sign in to comment.