Fix incorrect consistency check in Post::new()
This commit is contained in:
parent
215aa5932e
commit
9b52fb730a
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue