diff --git a/src/models/posts/types.rs b/src/models/posts/types.rs index 94756ad..9ebb56f 100644 --- a/src/models/posts/types.rs +++ b/src/models/posts/types.rs @@ -91,7 +91,7 @@ impl Post { db_mentions: Vec, ) -> Result { // Consistency checks - if db_post.author_id != db_post.author_id { + if db_post.author_id != db_author.id { return Err(ConversionError); }; if db_author.is_local() != db_post.object_id.is_none() {