Don't show boosts and likes for "all" and "local" in timelines (#781)

Fixes #711
This commit is contained in:
Gelez 2020-06-15 19:50:28 +02:00 committed by GitHub
parent ef70cb93e6
commit 297d9fcf40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -406,8 +406,8 @@ impl Bool {
} }
} }
Bool::HasCover => Ok(post.cover_id.is_some()), Bool::HasCover => Ok(post.cover_id.is_some()),
Bool::Local => Ok(post.get_blog(&rocket.conn)?.is_local()), Bool::Local => Ok(post.get_blog(&rocket.conn)?.is_local() && kind == Kind::Original),
Bool::All => Ok(true), Bool::All => Ok(kind == Kind::Original),
} }
} }
} }