From 4d7b0da0c05481f22def8632de41088972c1e9d5 Mon Sep 17 00:00:00 2001 From: 4sterisk <4sterisk@ymail.ne.jp> Date: Thu, 21 Nov 2024 05:44:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A5=E3=82=A2=E3=82=AB=E3=82=A6?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=81=A7=E9=96=8B=E3=81=84=E3=81=9F=E3=81=A8?= =?UTF-8?q?=E3=81=8D=E3=81=AB=E7=95=B0=E3=81=AA=E3=82=8B=E3=82=A2=E3=82=AB?= =?UTF-8?q?=E3=82=A6=E3=83=B3=E3=83=88=E3=81=A7=E8=A1=A8=E7=A4=BA=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E3=81=AE=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3(#683)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../misskey_notes/misskey_note_notifier.dart | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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); } }