add: user settings following page
add: comments to be seen by owner of the post they're on (even if the owner is private)
This commit is contained in:
parent
fa1a609bf5
commit
b8b0ef7f21
4 changed files with 154 additions and 7 deletions
|
@ -57,6 +57,20 @@ pub async fn settings_request(
|
|||
}
|
||||
};
|
||||
|
||||
let following = match data
|
||||
.0
|
||||
.fill_userfollows_with_receiver(
|
||||
data.0
|
||||
.get_userfollows_by_initiator_all(profile.id)
|
||||
.await
|
||||
.unwrap_or(Vec::new()),
|
||||
)
|
||||
.await
|
||||
{
|
||||
Ok(r) => r,
|
||||
Err(e) => return Err(Html(render_error(e, &jar, &data, &None).await)),
|
||||
};
|
||||
|
||||
let blocks = match data
|
||||
.0
|
||||
.fill_userblocks_receivers(data.0.get_userblocks_by_initiator(profile.id).await)
|
||||
|
@ -82,6 +96,7 @@ pub async fn settings_request(
|
|||
context.insert("page", &req.page);
|
||||
context.insert("uploads", &uploads);
|
||||
context.insert("stacks", &stacks);
|
||||
context.insert("following", &following);
|
||||
context.insert("blocks", &blocks);
|
||||
context.insert(
|
||||
"user_tokens_serde",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue