misc: lowercase authoirzation
This commit is contained in:
1 parent
e251141e2f
commit
3803649d93
2 files changed
+5
-3
No files matched your search
+4
-2
@@ -154,8 +154,10 @@ export let profile: Readable<Profile> & { set: (v: Profile) => void } =
|
||||
site.set(res?.site)
|
||||
|
||||
profile.user = res?.user
|
||||
profile.avatar = res?.user?.local_user_view.person.avatar
|
||||
profile.username = res?.user?.local_user_view.person.name
|
||||
if (profile.user) {
|
||||
profile.avatar = res?.user?.local_user_view.person.avatar
|
||||
profile.username = res?.user?.local_user_view.person.name
|
||||
}
|
||||
|
||||
fetchUser.loading = false
|
||||
fetchUser.prevProfile = profile.id
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ export function client({
|
||||
|
||||
let jwt = auth ? auth : get(profile)?.jwt
|
||||
|
||||
let headers = jwt ? { Authorization: `Bearer ${jwt}` } : {}
|
||||
const headers = jwt ? { authorization: `Bearer ${jwt}` } : {}
|
||||
|
||||
return new LemmyHttp(instanceToURL(instanceURL), {
|
||||
fetchFunction: (input, init) => customFetch(func, input, init, jwt),
|
||||
|
||||
Reference in new issue
Block a user