From 0aa6c0193ff6a2d0d2874cc1ac5ba860c47813b5 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 9 Jul 2020 13:29:59 +0200 Subject: [PATCH] Fix missing check --- src/helpers/friends_helper.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helpers/friends_helper.rs b/src/helpers/friends_helper.rs index ad256e5..375e9b9 100644 --- a/src/helpers/friends_helper.rs +++ b/src/helpers/friends_helper.rs @@ -87,6 +87,7 @@ fn get_list(friend_query: &GetFriendsQuery) -> ResultBoxError> { pub fn get_list_that_allow_posts_from_user(user_id: &UserID) -> ResultBoxError> { database::QueryInfo::new(FRIENDS_TABLE) .cond_legacy_bool("autoriser_post_page", true) + .cond_legacy_bool("actif", true) .cond_user_id("ID_amis", user_id) .add_field("ID_personne as user_id") .exec(|r| r.get_user_id("user_id"))