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 cd5a35b2..e4fe07db 100644 --- a/src/app/components/stream/user-profile/user-profile.component.ts +++ b/src/app/components/stream/user-profile/user-profile.component.ts @@ -157,7 +157,7 @@ export class UserProfileComponent implements OnInit { this.isLoading = false; this.statusLoading = true; - this.displayedAccount = account; + this.displayedAccount = this.fixPleromaFieldsUrl(account); this.hasNote = account && account.note && account.note !== '

'; if (this.hasNote) { this.note = this.emojiConverter.applyEmojis(account.emojis, account.note, EmojiTypeEnum.medium); @@ -178,6 +178,18 @@ export class UserProfileComponent implements OnInit { }); } + private fixPleromaFieldsUrl(acc: Account): Account { + if(acc.fields){ + acc.fields.forEach(f => { + if(f.value.includes('