mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-29 16:56:28 +00:00
Fix missing check
This commit is contained in:
parent
05b743fa36
commit
0aa6c0193f
@ -87,6 +87,7 @@ fn get_list(friend_query: &GetFriendsQuery) -> ResultBoxError<Vec<Friend>> {
|
||||
pub fn get_list_that_allow_posts_from_user(user_id: &UserID) -> ResultBoxError<Vec<UserID>> {
|
||||
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"))
|
||||
|
Loading…
Reference in New Issue
Block a user