Skip to content

Commit

Permalink
Fix wrong condition, resulting in 404 for valid NodeInfo endpoints (P…
Browse files Browse the repository at this point in the history
…lume-org#464)

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

* Forgot to remove that dbg!
  • Loading branch information
elegaanz authored and igalic committed Mar 12, 2019
1 parent fe6e69d commit b52b8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit b52b8fc

Please sign in to comment.