This commit is contained in:
parent
ae18ab36cf
commit
284836e0dd
2 changed files with 5 additions and 1 deletions
|
@ -54,7 +54,7 @@
|
||||||
<div *ngIf="post.raw">
|
<div *ngIf="post.raw">
|
||||||
<div *ngFor="let r of post.raw">
|
<div *ngFor="let r of post.raw">
|
||||||
<div *ngIf="r.type == 'io.pnut.core.oembed'">
|
<div *ngIf="r.type == 'io.pnut.core.oembed'">
|
||||||
<img src="{{ r.value.url }}">
|
<ion-item><ion-thumbnail><img src="{{ r.value.thumbnail_url || r.value.url }}" (click)="showImage(r.value.url)"></ion-thumbnail></ion-item>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -303,6 +303,10 @@ export class StreamPage {
|
||||||
newPostModal.present();
|
newPostModal.present();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
showImage(url) {
|
||||||
|
window.open(url, '_system');
|
||||||
|
}
|
||||||
|
|
||||||
presentToast(text) {
|
presentToast(text) {
|
||||||
let toast = this.toastCtrl.create({
|
let toast = this.toastCtrl.create({
|
||||||
position: 'top',
|
position: 'top',
|
||||||
|
|
Reference in a new issue