diff options
Diffstat (limited to 'server/src/db')
-rw-r--r-- | server/src/db/code_migrations.rs | 2 | ||||
-rw-r--r-- | server/src/db/post.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/src/db/code_migrations.rs b/server/src/db/code_migrations.rs index 11c8ba1f..204bfe79 100644 --- a/server/src/db/code_migrations.rs +++ b/server/src/db/code_migrations.rs @@ -124,7 +124,7 @@ fn post_updates_2020_04_03(conn: &PgConnection) -> Result<(), Error> { .load::<Post>(conn)?; for cpost in &incorrect_posts { - Post::update_ap_id(&conn, cpost.id, todo!())?; + Post::update_ap_id(&conn, cpost.id)?; } info!("{} post rows updated.", incorrect_posts.len()); diff --git a/server/src/db/post.rs b/server/src/db/post.rs index ff3af55d..d12f98d8 100644 --- a/server/src/db/post.rs +++ b/server/src/db/post.rs @@ -75,7 +75,7 @@ impl Post { post.filter(ap_id.eq(object_id)).first::<Self>(conn) } - pub fn update_ap_id(conn: &PgConnection, post_id: i32, ap_id: &str) -> Result<Self, Error> { + pub fn update_ap_id(conn: &PgConnection, post_id: i32) -> Result<Self, Error> { use crate::schema::post::dsl::*; let apid = make_apub_endpoint(EndpointType::Post, &post_id.to_string()).to_string(); |