Fix incorrect consistency check in Post::new()

This commit is contained in:
silverpill 2021-11-25 16:13:47 +00:00
parent 215aa5932e
commit 9b52fb730a

View file

@ -91,7 +91,7 @@ impl Post {
db_mentions: Vec<DbActorProfile>,
) -> Result<Self, ConversionError> {
// 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() {