Add dialog to remove follower (#9718)
This commit is contained in:
parent
320e5dba83
commit
e211d4e0cb
3 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,8 @@ export function getUserMenu(user, router: Router = mainRouter) {
|
|||
}
|
||||
|
||||
async function invalidateFollow() {
|
||||
if (!await getConfirmed(i18n.ts.breakFollowConfirm)) return;
|
||||
|
||||
os.apiWithDialog('following/invalidate', {
|
||||
userId: user.id,
|
||||
}).then(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue