|
|
|
@ -231,7 +231,7 @@
|
|
|
|
|
* Returns true if room should not be reflected in listings.
|
|
|
|
|
*/
|
|
|
|
|
public function is_off_record(): bool {
|
|
|
|
|
return !$this->read;
|
|
|
|
|
return !$this->read || $this->is_testing_room();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -499,6 +499,11 @@
|
|
|
|
|
return $this->has_nsfw_keywords() || $this->matched_by_list($NSFW_INCLUDE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function is_testing_room(): bool {
|
|
|
|
|
global $TESTING_INCLUDE;
|
|
|
|
|
return in_array("test", $this->tags) || $this->matched_by_list($TESTING_INCLUDE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Determine the safety of the Community's icon.
|
|
|
|
|
* @return 1 if safe, -1 if unsafe, 0 if unknown.
|
|
|
|
|