add: hide_from_social_lists user setting
This commit is contained in:
parent
4e152b07be
commit
bdd8f9a869
5 changed files with 64 additions and 21 deletions
|
@ -278,7 +278,10 @@ pub async fn followers_request(
|
|||
Ok(f) => Json(ApiReturn {
|
||||
ok: true,
|
||||
message: "Success".to_string(),
|
||||
payload: match data.fill_userfollows_with_initiator(f).await {
|
||||
payload: match data
|
||||
.fill_userfollows_with_initiator(f, &Some(user.clone()), id == user.id)
|
||||
.await
|
||||
{
|
||||
Ok(f) => Some(data.userfollows_user_filter(&f)),
|
||||
Err(e) => return Json(e.into()),
|
||||
},
|
||||
|
@ -310,7 +313,10 @@ pub async fn following_request(
|
|||
Ok(f) => Json(ApiReturn {
|
||||
ok: true,
|
||||
message: "Success".to_string(),
|
||||
payload: match data.fill_userfollows_with_receiver(f).await {
|
||||
payload: match data
|
||||
.fill_userfollows_with_receiver(f, &Some(user.clone()), id == user.id)
|
||||
.await
|
||||
{
|
||||
Ok(f) => Some(data.userfollows_user_filter(&f)),
|
||||
Err(e) => return Json(e.into()),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue