add emoji support in CW, fix #220
This commit is contained in:
parent
6ab3fc1bd8
commit
6a2ec8bd23
|
@ -92,7 +92,7 @@
|
|||
<a href class="status__content-warning" *ngIf="isContentWarned" title="show content"
|
||||
(click)="removeContentWarning()">
|
||||
<span class="status__content-warning--title">sensitive content</span>
|
||||
{{ contentWarningText }}
|
||||
<span innerHTML="{{ contentWarningText }}"></span>
|
||||
</a>
|
||||
<app-databinded-text class="status__content" *ngIf="!isContentWarned" [text]="statusContent"
|
||||
(accountSelected)="accountSelected($event)" (hashtagSelected)="hashtagSelected($event)"
|
||||
|
|
|
@ -97,7 +97,7 @@ export class StatusComponent implements OnInit {
|
|||
private checkContentWarning(status: Status) {
|
||||
if (status.sensitive || status.spoiler_text) {
|
||||
this.isContentWarned = true;
|
||||
this.contentWarningText = status.spoiler_text;
|
||||
this.contentWarningText = this.emojiConverter.applyEmojis(this.displayedStatus.emojis, status.spoiler_text, EmojiTypeEnum.medium);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue