diff --git a/packages/backend/src/server/api/mastodon/helpers/user.ts b/packages/backend/src/server/api/mastodon/helpers/user.ts index 1eb88a161..25150a540 100644 --- a/packages/backend/src/server/api/mastodon/helpers/user.ts +++ b/packages/backend/src/server/api/mastodon/helpers/user.ts @@ -192,7 +192,8 @@ export class UserHelpers { } public static async verifyCredentials(user: ILocalUser): Promise { - const acct = UserConverter.encode(user); + // re-fetch local user because auth user possibly contains outdated info + const acct = getUser(user.id).then(u => UserConverter.encode(u)); const profile = UserProfiles.findOneByOrFail({userId: user.id}); const privacy = this.getDefaultNoteVisibility(user); const fields = profile.then(profile => profile.fields.map(field => {