Fix logic based on string tags

dev
gravel 2 years ago
parent 22f8eacb91
commit 0ac3e7e396
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -475,7 +475,7 @@
// Description not included due to false positives.
$blob =
strtolower($this->name) . " " .
strtolower(join(" ", $this->tags));
strtolower(join(" ", $this->string_tags));
foreach (CommunityTag::NSFW_KEYWORDS as $keyword) {
if (str_contains($blob, $keyword)) {
@ -501,7 +501,7 @@
public function is_testing_room(): bool {
global $TESTING_INCLUDE;
return in_array("test", $this->tags) || $this->matched_by_list($TESTING_INCLUDE);
return in_array("test", $this->string_tags) || $this->matched_by_list($TESTING_INCLUDE);
}
/**

Loading…
Cancel
Save