diff --git a/src/routes/instance.rs b/src/routes/instance.rs index 8fcd26b..bdf605a 100644 --- a/src/routes/instance.rs +++ b/src/routes/instance.rs @@ -218,7 +218,7 @@ pub fn shared_inbox(conn: DbConn, data: SignedJson, headers: #[get("/nodeinfo/")] pub fn nodeinfo(conn: DbConn, version: String) -> Result, ErrorPage> { - if version != "2.0" || version != "2.1" { + if version != "2.0" && version != "2.1" { return Err(ErrorPage::from(Error::NotFound)); }