Upgrade to v0.14

This commit is contained in:
spikecodes 2021-05-16 09:11:38 -07:00
parent 8bb247af3b
commit 43ed9756dc
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
5 changed files with 12 additions and 11 deletions

View file

@ -34,11 +34,11 @@ pub async fn item(req: Request<Body>) -> Result<Response<Body>, String> {
let default_sort = setting(&req, "comment_sort");
// If there's no sort query but there's a default sort, set sort to default_sort
if !default_sort.is_empty() {
if default_sort.is_empty() {
String::new()
} else {
path = format!("{}.json?{}&sort={}&raw_json=1", req.uri().path(), req.uri().query().unwrap_or_default(), default_sort);
default_sort
} else {
String::new()
}
});