Slightly refactor account-update
For whatever reason, fetchUser and accountInfo returned different results for me (something something ID), that's why I replaced accountInfo which came from #1053 with fetchUser, so the displayed profile is consistent
This commit is contained in:
parent
ded7972f18
commit
02207d1b1f
|
@ -379,10 +379,10 @@ extension ProfileViewController {
|
||||||
.sink { [weak self] (user, _) in
|
.sink { [weak self] (user, _) in
|
||||||
guard let self = self, let user = user else { return }
|
guard let self = self, let user = user else { return }
|
||||||
Task {
|
Task {
|
||||||
_ = try await self.context.apiService.accountInfo(
|
_ = try await self.context.apiService.fetchUser(
|
||||||
|
username: user.username,
|
||||||
domain: user.domain,
|
domain: user.domain,
|
||||||
userID: user.id,
|
authenticationBox: self.authContext.mastodonAuthenticationBox
|
||||||
authorization: self.authContext.mastodonAuthenticationBox.userAuthorization
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue