fix: show only accepted follows

This commit is contained in:
əlemi 2024-06-10 04:46:43 +02:00
parent 81d8ee9cdf
commit 9967870ca2
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -82,6 +82,7 @@ pub async fn page<const OUTGOING: bool>(
}; };
let mut filter = Condition::all() let mut filter = Condition::all()
.add(model::relation::Column::Accept.is_not_null())
.add(if OUTGOING { Follower } else { Following }.eq(user.internal)); .add(if OUTGOING { Follower } else { Following }.eq(user.internal));
if hidden { if hidden {