add: great post average
This commit is contained in:
parent
11fb131b8b
commit
15dc2e5d71
5 changed files with 122 additions and 0 deletions
|
@ -350,6 +350,7 @@ pub async fn posts_request(
|
|||
context.insert("pinned", &pinned);
|
||||
context.insert("page", &props.page);
|
||||
context.insert("tag", &props.tag);
|
||||
context.insert("gpa", &data.0.calculate_user_gpa(other_user.id).await);
|
||||
profile_context(
|
||||
&mut context,
|
||||
&user,
|
||||
|
@ -453,6 +454,7 @@ pub async fn replies_request(
|
|||
|
||||
context.insert("posts", &posts);
|
||||
context.insert("page", &props.page);
|
||||
context.insert("gpa", &data.0.calculate_user_gpa(other_user.id).await);
|
||||
profile_context(
|
||||
&mut context,
|
||||
&user,
|
||||
|
@ -558,6 +560,7 @@ pub async fn media_request(
|
|||
|
||||
context.insert("posts", &posts);
|
||||
context.insert("page", &props.page);
|
||||
context.insert("gpa", &data.0.calculate_user_gpa(other_user.id).await);
|
||||
profile_context(
|
||||
&mut context,
|
||||
&user,
|
||||
|
@ -652,6 +655,7 @@ pub async fn outbox_request(
|
|||
|
||||
context.insert("questions", &questions);
|
||||
context.insert("page", &props.page);
|
||||
context.insert("gpa", &data.0.calculate_user_gpa(other_user.id).await);
|
||||
profile_context(
|
||||
&mut context,
|
||||
&Some(user),
|
||||
|
@ -746,6 +750,7 @@ pub async fn following_request(
|
|||
|
||||
context.insert("list", &list);
|
||||
context.insert("page", &props.page);
|
||||
context.insert("gpa", &data.0.calculate_user_gpa(other_user.id).await);
|
||||
profile_context(
|
||||
&mut context,
|
||||
&user,
|
||||
|
@ -840,6 +845,7 @@ pub async fn followers_request(
|
|||
|
||||
context.insert("list", &list);
|
||||
context.insert("page", &props.page);
|
||||
context.insert("gpa", &data.0.calculate_user_gpa(other_user.id).await);
|
||||
profile_context(
|
||||
&mut context,
|
||||
&user,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue