From 02207d1b1f908cd16ceef05b5d1b6f770bcf4f36 Mon Sep 17 00:00:00 2001 From: Nathan Mattes Date: Tue, 24 Oct 2023 13:38:41 +0200 Subject: [PATCH] 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 --- Mastodon/Scene/Profile/ProfileViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mastodon/Scene/Profile/ProfileViewController.swift b/Mastodon/Scene/Profile/ProfileViewController.swift index 1edb7e5f7..09a33e997 100644 --- a/Mastodon/Scene/Profile/ProfileViewController.swift +++ b/Mastodon/Scene/Profile/ProfileViewController.swift @@ -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 ) } }