Skip to content

Commit c213bbf

Browse files
disable search
1 parent cf3bc2c commit c213bbf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ macro_rules! document {
3636
footer { div {
3737
a href="/" { "Home" }
3838
" - "
39-
a href="/search" { "Search" }
40-
" - "
39+
// a href="/search" { "Search" }
40+
// " - "
4141
a href="/settings" { "Settings" }
4242
" - "
4343
a href="/about" { "About" } } }

src/routes/search.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pub fn render_section(
5757
}
5858

5959
pub fn render_search(client: &Client, request: &rouille::Request) -> ApiResult<String> {
60+
return Err(crate::api::error::ApiError::Internal("Search is currently disabled due to abuse".to_string()));
6061
match request.get_param("query") {
6162
Some(query) => {
6263
let offset = request

0 commit comments

Comments
 (0)