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
|
@ -81,7 +81,7 @@
|
|||
(script
|
||||
(text "globalThis.toggle_follow_user = async (e) => {
|
||||
await trigger(\"atto::debounce\", [\"users::follow\"]);
|
||||
fetch(\"/api/v1/auth/user/{{ profile.id }}/follow\", {
|
||||
fetch(\"/api/v1/auth/user/{{ profile.id }}/follow/toggle\", {
|
||||
method: \"POST\",
|
||||
})
|
||||
.then((res) => res.json())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue