Feat: リモートユーザーの更新をできるように
Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
This commit is contained in:
parent
9ec667a87c
commit
7faf5c7dd2
|
|
@ -113,7 +113,11 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router
|
|||
|
||||
return !confirm.canceled;
|
||||
}
|
||||
|
||||
async function userInfoUpdate() {
|
||||
os.apiWithDialog('federation/update-remote-user', {
|
||||
userId: user.id,
|
||||
});
|
||||
}
|
||||
async function invalidateFollow() {
|
||||
if (!await getConfirmed(i18n.ts.breakFollowConfirm)) return;
|
||||
|
||||
|
|
@ -329,7 +333,13 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router
|
|||
action: reportAbuse,
|
||||
}]);
|
||||
}
|
||||
|
||||
if (user.host !== null) {
|
||||
menu = menu.concat([null, {
|
||||
icon: 'ti ti-refresh',
|
||||
text: i18n.ts.updateRemoteUser,
|
||||
action: userInfoUpdate,
|
||||
}]);
|
||||
}
|
||||
if (defaultStore.state.devMode) {
|
||||
menu = menu.concat([null, {
|
||||
icon: 'ti ti-id',
|
||||
|
|
|
|||
Loading…
Reference in New Issue