From 6ab3fc1bd80bba1ab7bc3cae6129472ed356b720 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Mon, 24 Feb 2020 20:21:07 -0500 Subject: [PATCH 1/4] trim instance name, fix #225 --- .../add-new-account/add-new-account.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/floating-column/add-new-account/add-new-account.component.ts b/src/app/components/floating-column/add-new-account/add-new-account.component.ts index d46514b2..064ad8af 100644 --- a/src/app/components/floating-column/add-new-account/add-new-account.component.ts +++ b/src/app/components/floating-column/add-new-account/add-new-account.component.ts @@ -22,7 +22,7 @@ export class AddNewAccountComponent implements OnInit { private instance: string; @Input() set setInstance(value: string) { - this.instance = value; + this.instance = value.trim(); this.checkComrad(); } get setInstance(): string { From 6a2ec8bd23d7769b2602f8dd37c64e0d310a42f0 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Mon, 24 Feb 2020 20:32:30 -0500 Subject: [PATCH 2/4] add emoji support in CW, fix #220 --- src/app/components/stream/status/status.component.html | 2 +- src/app/components/stream/status/status.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/stream/status/status.component.html b/src/app/components/stream/status/status.component.html index 87d8af14..d9463266 100644 --- a/src/app/components/stream/status/status.component.html +++ b/src/app/components/stream/status/status.component.html @@ -92,7 +92,7 @@ sensitive content - {{ contentWarningText }} + Date: Mon, 24 Feb 2020 20:42:18 -0500 Subject: [PATCH 3/4] clean pleroma account's fields url, fix #200 --- .../stream/user-profile/user-profile.component.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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('