diff --git a/status.php b/status.php index dcda0af3..ef2e28f8 100644 --- a/status.php +++ b/status.php @@ -1,14 +1,13 @@ 'overboard', 'title' => 'Overboard']; -$board_list[] = ['uri' => 'sfw', 'title' => 'SFW Overboard']; -$board_list[] = ['uri' => 'alt', 'title' => 'Alternate Overboard']; +foreach ($overboards_config as $overboard) { + $board_list[] = $overboard; +} /** * Allowed fields for the board object: * - code: The board code ('b', 'tech', ...) * - name: The board user-readable name ('Siberia', ...) - * - description: The board description ('Leftist Politically Incorrect', ...) * - sfw: Is this board sfw? * - alternate_spoilers: Does this board use the alunya spoiler? + * - posting_enabled: Can new posts be created belonging to this board? */ $boards = []; foreach ($board_list as $board) { - // Skip archives - if (endsWith($board['uri'], '_archive')) { - continue; + // Skip blacklisted boards + foreach ($blacklist as $regex) { + if (preg_match($regex, $board['uri'])) { + continue 2; // Skip to the next board + } } $boards[] = [