diff --git a/boards.php b/boards.php index 85559958..4e5fc2b5 100644 --- a/boards.php +++ b/boards.php @@ -94,7 +94,17 @@ if ($admin) { echo $html; } else { file_write("boards.json", json_encode($boards)); + foreach ($boards as $i => $b) { + if (in_array($b['uri'], $config['no_top_bar_boards'])) { + unset($boards[$i]); + } + unset($boards[$i]['img']); + } + array_splice($boards, 20); + + $boards = array_values($boards); + file_write("boards-top20.json", json_encode($boards)); file_write("boards.html", $html); echo 'Done'; diff --git a/js/update_boards.js b/js/update_boards.js index 5186615a..127d0874 100644 --- a/js/update_boards.js +++ b/js/update_boards.js @@ -3,7 +3,7 @@ $(document).ready(function(){ window.boards = new Array(); function handle_boards(data) { $.each(data, function(k, v) { - if (v.uri != 'meta' && v.uri != 'b' && v.uri != 'int') { + if (v.uri != 'meta' && v.uri != 'b') { boards.push(''+v.uri+''); } })