Fix AP Article ID

This commit is contained in:
Bat
2018-05-04 11:46:02 +01:00
parent 81acc96e64
commit 0105132382
+1 -1
View File
@@ -78,7 +78,7 @@ impl 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 {