~boringcactus/gemifedi

9e46c95405b948d127122e1ebac8c9fde7086f8e — Melody Horn 1 year, 4 months ago 360f9f1
make logout page more useful
1 files changed, 3 insertions(+), 3 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +3 -3
@@ 228,13 228,13 @@ impl Handler {
    }

    fn about(&self, _req: GeminiRequest) -> Result<GeminiResponse, Error> {
        let response = gemtext::parse(r#"# About gemifedi
        let response = gemtext::parse(concat!(r#"# About gemifedi v"#, env!("CARGO_PKG_VERSION"), r#"

gemifedi is a Mastodon / Pleroma client for the Gemini protocol. it uses the OAuth API to access your timeline, and stores data keyed by your chosen client certificate. i recommend hosting it yourself instead of trusting someone else to host it for you.

=> https://git.sr.ht/~boringcactus/gemifedi source code and hosting instructions
=> /                                        log in on this install of gemifedi
"#);
"#));

        Ok(GeminiResponse::render(response))
    }


@@ 248,7 248,7 @@ gemifedi is a Mastodon / Pleroma client for the Gemini protocol. it uses the OAu
        if path.exists() {
            fs::remove_file(path).unwrap();
        }
        Ok(GeminiResponse::gemini(b"Logged out successfully".to_vec()))
        Ok(GeminiResponse::gemini(b"Logged out successfully\n=> /about about gemifedi".to_vec()))
    }
}