add trailing slashes to links where they were missing

Signed-off-by: Trinity Pointard <trinity.pointard@insa-rennes.fr>
This commit is contained in:
Trinity Pointard
2018-05-22 17:35:16 +02:00
parent 045e885821
commit a8aeb40b95
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ impl IntoId for Post {
impl Object for Post {
fn compute_id(&self, conn: &PgConnection) -> String {
ap_url(format!("{}/~/{}/{}", BASE_URL.as_str(), self.get_blog(conn).actor_id, self.slug))
ap_url(format!("{}/~/{}/{}/", BASE_URL.as_str(), self.get_blog(conn).actor_id, self.slug))
}
fn serialize(&self, conn: &PgConnection) -> serde_json::Value {