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"))