mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-04-18 21:45:06 -04:00
Do not run a search if only /search is requested
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
title search results for #{q}
|
||||
if no_query
|
||||
title search teddit
|
||||
else
|
||||
title search results for #{q}
|
||||
include includes/head.pug
|
||||
body(class=""+ user_preferences.theme +"")
|
||||
include includes/topbar.pug
|
||||
@@ -94,7 +97,7 @@ html
|
||||
option(value="all", selected="selected") all time
|
||||
input(type="submit", value="search")
|
||||
#links.search
|
||||
if json.posts.length === 0
|
||||
if json.posts.length === 0 && !no_query
|
||||
p no results
|
||||
else
|
||||
each link in json.posts
|
||||
|
||||
Reference in New Issue
Block a user