forked from leftypol/leftypol
SearchService.php: expose if the flag filter is enabled
This commit is contained in:
parent
a749cc829c
commit
78e31f653c
1 changed files with 7 additions and 0 deletions
|
|
@ -407,4 +407,11 @@ class SearchService {
|
|||
public function getSearchableBoards(): array {
|
||||
return $this->searchable_board_uris;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool True if the flag filter is enabled.
|
||||
*/
|
||||
public function isFlagFilterEnabled(): bool {
|
||||
return !empty($this->flag_map);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue