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
|
||||
guard let self = self, let user = user else { return }
|
||||
Task {
|
||||
_ = try await self.context.apiService.accountInfo(
|
||||
_ = try await self.context.apiService.fetchUser(
|
||||
username: user.username,
|
||||
domain: user.domain,
|
||||
userID: user.id,
|
||||
authorization: self.authContext.mastodonAuthenticationBox.userAuthorization
|
||||
authenticationBox: self.authContext.mastodonAuthenticationBox
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue