Browse Source

Fix wrong condition, resulting in 404 for valid NodeInfo endpoints (#464)

* Fix wrong condition, resulting in 404 for valid NodeInfo endpoints

* Forgot to remove that dbg!
fix-mobile-margin
Baptiste Gelez 3 years ago
committed by Igor Galić
parent
commit
b52b8fc880
  1. 2
      src/routes/instance.rs

2
src/routes/instance.rs

@ -218,7 +218,7 @@ pub fn shared_inbox(conn: DbConn, data: SignedJson<serde_json::Value>, headers:
#[get("/nodeinfo/<version>")]
pub fn nodeinfo(conn: DbConn, version: String) -> Result<Json<serde_json::Value>, ErrorPage> {
if version != "2.0" || version != "2.1" {
if version != "2.0" && version != "2.1" {
return Err(ErrorPage::from(Error::NotFound));
}

Loading…
Cancel
Save