diff --git a/src/models/posts/queries.rs b/src/models/posts/queries.rs index f6c5e55..5a76562 100644 --- a/src/models/posts/queries.rs +++ b/src/models/posts/queries.rs @@ -157,7 +157,7 @@ pub async fn create_post( &transaction, &db_post.author_id, &repost_of_author.id, - &db_post.id, + repost_of_id, ).await?; notified_users.push(repost_of_author.id); };