fix: nsfw posts in all/communities timelines
This commit is contained in:
parent
69067145ce
commit
7960f1ed41
3 changed files with 28 additions and 6 deletions
|
@ -723,7 +723,7 @@ pub async fn from_communities_request(
|
|||
};
|
||||
|
||||
match data
|
||||
.get_posts_from_user_communities(user.id, 12, props.page)
|
||||
.get_posts_from_user_communities(user.id, 12, props.page, &user)
|
||||
.await
|
||||
{
|
||||
Ok(posts) => {
|
||||
|
|
|
@ -58,7 +58,7 @@ pub async fn index_request(
|
|||
|
||||
let list = match data
|
||||
.0
|
||||
.get_posts_from_user_communities(user.id, 12, req.page)
|
||||
.get_posts_from_user_communities(user.id, 12, req.page, &user)
|
||||
.await
|
||||
{
|
||||
Ok(l) => match data
|
||||
|
@ -725,7 +725,7 @@ pub async fn swiss_army_timeline_request(
|
|||
DefaultTimelineChoice::MyCommunities => {
|
||||
if let Some(ref ua) = user {
|
||||
data.0
|
||||
.get_posts_from_user_communities(ua.id, 12, req.page)
|
||||
.get_posts_from_user_communities(ua.id, 12, req.page, ua)
|
||||
.await
|
||||
} else {
|
||||
return Err(Html(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue