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:
Nathan Mattes 2023-10-24 13:38:41 +02:00
parent ded7972f18
commit 02207d1b1f
1 changed files with 3 additions and 3 deletions

View File

@ -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
) )
} }
} }