summaryrefslogtreecommitdiffstats
path: root/server/src/apub
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/apub')
-rw-r--r--server/src/apub/community.rs4
-rw-r--r--server/src/apub/user.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/src/apub/community.rs b/server/src/apub/community.rs
index 504e1790..fac6088e 100644
--- a/server/src/apub/community.rs
+++ b/server/src/apub/community.rs
@@ -84,7 +84,7 @@ pub struct CommunityQuery {
community_name: String,
}
-pub fn get_apub_community(info: Path<CommunityQuery>) -> HttpResponse<Body> {
+pub async fn get_apub_community(info: Path<CommunityQuery>) -> HttpResponse<Body> {
let connection = establish_connection();
if let Ok(community) = Community::read_from_name(&connection, info.community_name.to_owned()) {
@@ -96,7 +96,7 @@ pub fn get_apub_community(info: Path<CommunityQuery>) -> HttpResponse<Body> {
}
}
-pub fn get_apub_community_followers(info: Path<CommunityQuery>) -> HttpResponse<Body> {
+pub async fn get_apub_community_followers(info: Path<CommunityQuery>) -> HttpResponse<Body> {
let connection = establish_connection();
if let Ok(community) = Community::read_from_name(&connection, info.community_name.to_owned()) {
diff --git a/server/src/apub/user.rs b/server/src/apub/user.rs
index 9de2c36c..cf9a9797 100644
--- a/server/src/apub/user.rs
+++ b/server/src/apub/user.rs
@@ -61,7 +61,7 @@ pub struct UserQuery {
user_name: String,
}
-pub fn get_apub_user(info: Path<UserQuery>) -> HttpResponse<Body> {
+pub async fn get_apub_user(info: Path<UserQuery>) -> HttpResponse<Body> {
let connection = establish_connection();
if let Ok(user) = User_::find_by_email_or_username(&connection, &info.user_name) {