fix: email showing up in list instead of username
This commit is contained in:
1 parent
8ecf656e5f
commit
10dc00080b
4 files changed
+5
-9
No files matched your search
+3
-1
@@ -105,6 +105,8 @@ export async function setUser(jwt: string, inst: string, username: string) {
|
||||
content: 'Failed to fetch your user. Is your instance down?',
|
||||
type: 'error',
|
||||
})
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
instance.set(inst)
|
||||
@@ -117,7 +119,7 @@ export async function setUser(jwt: string, inst: string, username: string) {
|
||||
id: id,
|
||||
instance: inst,
|
||||
jwt: jwt,
|
||||
username: username,
|
||||
username: user.user.local_user_view.person.name,
|
||||
}
|
||||
|
||||
profile.set({
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
class:hidden={!$userSettings.expandSidebar}
|
||||
class="flex flex-col gap-0"
|
||||
>
|
||||
{prof.username}
|
||||
{prof.username ?? prof.user?.local_user_view.person.name}
|
||||
<span class="text-slate-500 dark:text-zinc-400 font-normal text-xs">
|
||||
{prof.instance}
|
||||
</span>
|
||||
|
||||
@@ -64,12 +64,6 @@
|
||||
label="Username"
|
||||
placeholder="Example"
|
||||
class="flex-1"
|
||||
on:input={(e) => {
|
||||
if (e.detail.data == '@') {
|
||||
document.getElementById('instance_url')?.focus()
|
||||
data.username = data.username.replace('@', '')
|
||||
}
|
||||
}}
|
||||
required
|
||||
/>
|
||||
{#if !LINKED_INSTANCE_URL}
|
||||
|
||||
Reference in new issue
Block a user