add: manage followers page
This commit is contained in:
parent
959a125992
commit
70ecc6f96e
8 changed files with 119 additions and 6 deletions
|
@ -63,11 +63,27 @@ pub async fn settings_request(
|
|||
}
|
||||
};
|
||||
|
||||
let followers = match data
|
||||
.0
|
||||
.fill_userfollows_with_initiator(
|
||||
data.0
|
||||
.get_userfollows_by_receiver(profile.id, 12, req.page)
|
||||
.await
|
||||
.unwrap_or(Vec::new()),
|
||||
&None,
|
||||
false,
|
||||
)
|
||||
.await
|
||||
{
|
||||
Ok(r) => r,
|
||||
Err(e) => return Err(Html(render_error(e, &jar, &data, &None).await)),
|
||||
};
|
||||
|
||||
let following = match data
|
||||
.0
|
||||
.fill_userfollows_with_receiver(
|
||||
data.0
|
||||
.get_userfollows_by_initiator_all(profile.id)
|
||||
.get_userfollows_by_initiator(profile.id, 12, req.page)
|
||||
.await
|
||||
.unwrap_or(Vec::new()),
|
||||
&None,
|
||||
|
@ -138,6 +154,7 @@ pub async fn settings_request(
|
|||
context.insert("page", &req.page);
|
||||
context.insert("uploads", &uploads);
|
||||
context.insert("stacks", &stacks);
|
||||
context.insert("followers", &followers);
|
||||
context.insert("following", &following);
|
||||
context.insert("blocks", &blocks);
|
||||
context.insert("stackblocks", &stackblocks);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue