MarseyWorld/files/assets/js/following.js

9 lines
145 B
JavaScript

function removeFollowing(t, username) {
postToast(
t,
`/unfollow/${username}`,
{},
() => {t.parentElement.parentElement.remove()}
);
}