forked from rDrama/rDrama
1
0
Fork 0

fix improper usage of postToastSwitch

master
Aevann 2023-08-12 13:49:23 +03:00
parent 149095d91e
commit e9f09e1fe9
3 changed files with 18 additions and 6 deletions

View File

@ -1,4 +1,8 @@
function unbanDomain(t, domain) {
postToastSwitch(t,'/admin/unban_domain/' + domain);
t.parentElement.parentElement.remove();
postToast(
t,
`/admin/unban_domain/${domain}`,
{},
() => {t.parentElement.parentElement.remove()}
);
}

View File

@ -1,4 +1,8 @@
function removeFollower(t, username) {
postToastSwitch(t,'/remove_follow/' + username);
t.parentElement.parentElement.remove();
postToast(
t,
`/remove_follow/${username}`,
{},
() => {t.parentElement.parentElement.remove()}
);
}

View File

@ -1,4 +1,8 @@
function removeFollowing(t, username) {
postToastSwitch(t,'/unfollow/' + username);
t.parentElement.parentElement.remove();
postToast(
t,
`/unfollow/${username}`,
{},
() => {t.parentElement.parentElement.remove()}
);
}