diff --git a/Cargo.lock b/Cargo.lock index 8398ce09..734c5917 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1447,7 +1447,7 @@ dependencies = [ [[package]] name = "plume" -version = "0.1.0" +version = "0.2.0" dependencies = [ "activitypub 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "atom_syndication 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1460,8 +1460,8 @@ dependencies = [ "guid-create 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "heck 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "multipart 0.15.3 (registry+https://github.com/rust-lang/crates.io-index)", - "plume-common 0.1.0", - "plume-models 0.1.0", + "plume-common 0.2.0", + "plume-models 0.2.0", "rocket 0.4.0-dev (git+https://github.com/SergioBenitez/Rocket?rev=55459db7732b9a240826a5c120c650f87e3372ce)", "rocket_codegen 0.4.0-dev (git+https://github.com/SergioBenitez/Rocket?rev=55459db7732b9a240826a5c120c650f87e3372ce)", "rocket_contrib 0.4.0-dev (git+https://github.com/SergioBenitez/Rocket?rev=55459db7732b9a240826a5c120c650f87e3372ce)", @@ -1480,7 +1480,7 @@ dependencies = [ [[package]] name = "plume-common" -version = "0.1.0" +version = "0.2.0" dependencies = [ "activitypub 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "activitystreams-derive 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1505,7 +1505,7 @@ dependencies = [ [[package]] name = "plume-models" -version = "0.1.0" +version = "0.2.0" dependencies = [ "activitypub 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "ammonia 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1513,9 +1513,9 @@ dependencies = [ "chrono 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "diesel 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", "heck 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "openssl 0.10.11 (registry+https://github.com/rust-lang/crates.io-index)", - "plume-common 0.1.0", + "plume-common 0.2.0", "reqwest 0.8.8 (registry+https://github.com/rust-lang/crates.io-index)", "rocket 0.4.0-dev (git+https://github.com/SergioBenitez/Rocket?rev=55459db7732b9a240826a5c120c650f87e3372ce)", "serde 1.0.77 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 08d9608a..6ce996c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Bat' "] name = "plume" -version = "0.1.0" +version = "0.2.0" [dependencies] activitypub = "0.1.3" atom_syndication = "0.6" diff --git a/plume-common/Cargo.toml b/plume-common/Cargo.toml index eae12811..612b3c91 100644 --- a/plume-common/Cargo.toml +++ b/plume-common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "plume-common" -version = "0.1.0" +version = "0.2.0" authors = ["Bat' "] [dependencies] diff --git a/plume-common/src/activity_pub/request.rs b/plume-common/src/activity_pub/request.rs index 2e529c42..fa9313f9 100644 --- a/plume-common/src/activity_pub/request.rs +++ b/plume-common/src/activity_pub/request.rs @@ -9,7 +9,7 @@ use std::time::SystemTime; use activity_pub::ap_accept_header; use activity_pub::sign::Signer; -const USER_AGENT: &'static str = "Plume/0.1.0"; +const USER_AGENT: &'static str = "Plume/0.2.0"; header! { (Signature, "Signature") => [String] @@ -30,7 +30,7 @@ pub fn headers() -> Headers { pub fn signature(signer: &S, headers: Headers) -> Signature { let signed_string = headers.iter().map(|h| format!("{}: {}", h.name().to_lowercase(), h.value_string())).collect::>().join("\n"); let signed_headers = headers.iter().map(|h| h.name().to_string()).collect::>().join(" ").to_lowercase(); - + let data = signer.sign(signed_string); let sign = base64::encode(&data[..]); diff --git a/plume-models/Cargo.toml b/plume-models/Cargo.toml index cf2f6568..a25221c6 100644 --- a/plume-models/Cargo.toml +++ b/plume-models/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "plume-models" -version = "0.1.0" +version = "0.2.0" authors = ["Baptiste Gelez "] [dependencies] diff --git a/src/routes/instance.rs b/src/routes/instance.rs index 1bec0f3c..6905ecbc 100644 --- a/src/routes/instance.rs +++ b/src/routes/instance.rs @@ -213,7 +213,7 @@ fn nodeinfo(conn: DbConn) -> Json { "version": "2.0", "software": { "name": "Plume", - "version": "0.1.0" + "version": "0.2.0" }, "protocols": ["activitypub"], "services": { @@ -238,7 +238,7 @@ fn about(user: Option, conn: DbConn) -> Template { "account": user.map(|u| u.to_json(&*conn)), "instance": Instance::get_local(&*conn), "admin": Instance::get_local(&*conn).map(|i| i.main_admin(&*conn).to_json(&*conn)), - "version": "0.1.0", + "version": "0.2.0", "n_users": User::count_local(&*conn), "n_articles": Post::count_local(&*conn), "n_instances": Instance::count(&*conn) - 1 diff --git a/templates/base.html.tera b/templates/base.html.tera index f68031e6..8a9b0f34 100644 --- a/templates/base.html.tera +++ b/templates/base.html.tera @@ -58,7 +58,7 @@ {% endblock content %}