fix: don't toggle follow when following back
This commit is contained in:
parent
70ecc6f96e
commit
0256f38e5d
7 changed files with 78 additions and 7 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue