Add the gettext-rs crate

This commit is contained in:
Bat
2018-06-15 14:08:38 +01:00
parent a4a8446d45
commit c9b4c40fa1
4 changed files with 36 additions and 2 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ fn follow_auth(name: String) -> Flash<Redirect> {
fn followers(name: String, conn: DbConn, account: Option<User>) -> Template {
let user = User::find_by_fqn(&*conn, name.clone()).unwrap();
let user_id = user.id.clone();
Template::render("users/followers", json!({
"user": serde_json::to_value(user.clone()).unwrap(),
"instance_url": user.get_instance(&*conn).public_domain,