diff --git a/lib/state_notifier/common/misskey_notes/misskey_note_notifier.dart b/lib/state_notifier/common/misskey_notes/misskey_note_notifier.dart index 6d99789d0..57f3f39cc 100644 --- a/lib/state_notifier/common/misskey_notes/misskey_note_notifier.dart +++ b/lib/state_notifier/common/misskey_notes/misskey_note_notifier.dart @@ -203,6 +203,21 @@ class MisskeyNoteNotifier extends _$MisskeyNoteNotifier { ); if (selectedAccount == null) return; + if (user.host == null) { + switch (user) { + case UserLite(): + user = user.copyWith(host: accountContext.getAccount.host); + + case UserDetailedNotMe(): + user = user.copyWith(host: accountContext.getAccount.host); + + case UserDetailedNotMeWithRelations(): + user = user.copyWith(host: accountContext.getAccount.host); + + case MeDetailed(): + user = user.copyWith(host: accountContext.getAccount.host); + } + } await navigateToUserPage(user, account: selectedAccount); } }