diff options
author | Colin Reeder <colin@vpzom.click> | 2020-08-08 09:45:25 -0600 |
---|---|---|
committer | Colin Reeder <colin@vpzom.click> | 2020-08-08 09:45:25 -0600 |
commit | 50e529d60bf6f60a41eaa51d9005abbe9da80adf (patch) | |
tree | 69b791869a8d4500043e6c698a2bebaf88f43168 | |
parent | 44f56e25da2ffab8faf34f44c0b9e4d4c434e699 (diff) |
Switch to "~me" for users routes
-rw-r--r-- | src/routes/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/mod.rs b/src/routes/mod.rs index e3d6c76..aa8678e 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -913,7 +913,7 @@ async fn page_notifications( ctx.http_client .request(for_client( hyper::Request::get(format!( - "{}/api/unstable/users/me/notifications", + "{}/api/unstable/users/~me/notifications", ctx.backend_host )) .body(Default::default())?, @@ -1278,7 +1278,7 @@ async fn handler_user_edit_submit( res_to_error( ctx.http_client .request(for_client( - hyper::Request::patch(format!("{}/api/unstable/users/me", ctx.backend_host)) + hyper::Request::patch(format!("{}/api/unstable/users/~me", ctx.backend_host)) .body(serde_json::to_vec(&body)?.into())?, &req_parts.headers, &cookies, @@ -1394,7 +1394,7 @@ async fn page_home( ctx.http_client .request(for_client( hyper::Request::get(format!( - "{}/api/unstable/users/me/following:posts", + "{}/api/unstable/users/~me/following:posts", ctx.backend_host )) .body(Default::default())?, |