add: option to hide posts answering questions from "All" timeline
This commit is contained in:
parent
5961999ce4
commit
612fbf5eb4
6 changed files with 36 additions and 5 deletions
|
@ -792,7 +792,10 @@ pub async fn all_request(
|
|||
None => return Json(Error::NotAllowed.into()),
|
||||
};
|
||||
|
||||
match data.get_latest_posts(12, props.page).await {
|
||||
match data
|
||||
.get_latest_posts(12, props.page, &Some(user.clone()))
|
||||
.await
|
||||
{
|
||||
Ok(posts) => {
|
||||
let ignore_users = crate::ignore_users_gen!(user!, #data);
|
||||
Json(ApiReturn {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue