limit account's media to images/gifs

This commit is contained in:
Nicolas Constant 2020-04-18 18:08:44 -04:00
parent c75245fabe
commit b65737e237
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@
</div>
<div *ngIf="statusSection === 'media'" class="status-media">
<div *ngFor="let media of statusWrapper.status.media_attachments">
<a href title="open" (click)="openAttachment(media)">
<a *ngIf="media.type === 'image' || media.type === 'gifv'" href title="open" (click)="openAttachment(media)">
<img class="status-media__image" src="{{media.preview_url}}" />
</a>
</div>