mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-21 22:35:11 +00:00
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/684 Closes #741 Approved-by: Hazelnoot <acomputerdog@gmail.com> Approved-by: Marie <github@yuugi.dev>
This commit is contained in:
commit
669e5c6ca0
1 changed files with 8 additions and 3 deletions
|
@ -107,12 +107,17 @@ const props = withDefaults(defineProps<{
|
|||
});
|
||||
|
||||
function onUsernameChange(): void {
|
||||
const usernameRequested = username.value;
|
||||
misskeyApi('users/show', {
|
||||
username: username.value,
|
||||
username: usernameRequested,
|
||||
}).then(userResponse => {
|
||||
user.value = userResponse;
|
||||
if (userResponse.username === username.value) {
|
||||
user.value = userResponse;
|
||||
}
|
||||
}, () => {
|
||||
user.value = null;
|
||||
if (usernameRequested === username.value) {
|
||||
user.value = null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue