From 985513335ed45602cc482ddd7503bdc55fae6c24 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Tue, 6 Aug 2019 20:16:10 -0400 Subject: [PATCH] better migrated account opening --- .../stream/user-profile/user-profile.component.html | 2 +- .../stream/user-profile/user-profile.component.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/components/stream/user-profile/user-profile.component.html b/src/app/components/stream/user-profile/user-profile.component.html index fce38eff..699d64a4 100644 --- a/src/app/components/stream/user-profile/user-profile.component.html +++ b/src/app/components/stream/user-profile/user-profile.component.html @@ -41,7 +41,7 @@
{{displayedAccount | accountEmoji }} has moved to @{{displayedAccount.moved.acct }}
diff --git a/src/app/components/stream/user-profile/user-profile.component.ts b/src/app/components/stream/user-profile/user-profile.component.ts index 8403b9c0..6abbb0a7 100644 --- a/src/app/components/stream/user-profile/user-profile.component.ts +++ b/src/app/components/stream/user-profile/user-profile.component.ts @@ -210,8 +210,13 @@ export class UserProfileComponent implements OnInit { this.load(this.lastAccountName); } - browseAccount(accountName: string): boolean { + browseAccount(accountName: string): void { this.browseAccountEvent.next(accountName); + } + + openMigratedAccount(account: Account): boolean { + const handle = this.toolsService.getAccountFullHandle(account); + this.browseAccount(handle); return false; }