add: option to hide posts answering questions from "All" timeline

This commit is contained in:
trisua 2025-06-22 00:45:05 -04:00
parent 5961999ce4
commit 612fbf5eb4
6 changed files with 36 additions and 5 deletions

View file

@ -636,7 +636,9 @@ pub async fn swiss_army_timeline_request(
} else {
// everything else
match req.tl {
DefaultTimelineChoice::AllPosts => data.0.get_latest_posts(12, req.page).await,
DefaultTimelineChoice::AllPosts => {
data.0.get_latest_posts(12, req.page, &user).await
}
DefaultTimelineChoice::PopularPosts => {
data.0.get_popular_posts(12, req.page, 604_800_000).await
}