forked from rDrama/rDrama
fix improper usage of postToastSwitch
parent
149095d91e
commit
e9f09e1fe9
|
@ -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()}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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()}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
function removeFollowing(t, username) {
|
||||
postToastSwitch(t,'/unfollow/' + username);
|
||||
t.parentElement.parentElement.remove();
|
||||
postToast(
|
||||
t,
|
||||
`/unfollow/${username}`,
|
||||
{},
|
||||
() => {t.parentElement.parentElement.remove()}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue