fix: don't toggle follow when following back

This commit is contained in:
trisua 2025-07-15 15:59:05 -04:00
parent 70ecc6f96e
commit 0256f38e5d
7 changed files with 78 additions and 7 deletions

View file

@ -285,6 +285,10 @@ pub fn routes() -> Router {
.route("/auth/user/{id}/avatar", get(auth::images::avatar_request))
.route("/auth/user/{id}/banner", get(auth::images::banner_request))
.route("/auth/user/{id}/follow", post(auth::social::follow_request))
.route(
"/auth/user/{id}/follow/toggle",
post(auth::social::toggle_follow_request),
)
.route(
"/auth/user/{id}/follow/cancel",
post(auth::social::cancel_follow_request),