From 297d9fcf406fcbc2bcf93b64325d9947f2367dbc Mon Sep 17 00:00:00 2001 From: Gelez Date: Mon, 15 Jun 2020 19:50:28 +0200 Subject: [PATCH] Don't show boosts and likes for "all" and "local" in timelines (#781) Fixes #711 --- plume-models/src/timeline/query.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plume-models/src/timeline/query.rs b/plume-models/src/timeline/query.rs index 68cd42d5..3bbed7e0 100644 --- a/plume-models/src/timeline/query.rs +++ b/plume-models/src/timeline/query.rs @@ -406,8 +406,8 @@ impl Bool { } } Bool::HasCover => Ok(post.cover_id.is_some()), - Bool::Local => Ok(post.get_blog(&rocket.conn)?.is_local()), - Bool::All => Ok(true), + Bool::Local => Ok(post.get_blog(&rocket.conn)?.is_local() && kind == Kind::Original), + Bool::All => Ok(kind == Kind::Original), } } }