commit 8d9a3c54902a495d504b7cffa8d83e353b8949b8 parent 9ba95e0ff77aa9feb90fbfd45bf2dbca7078a8cd Author: MTRNord <mtrnord1@gmail.com> Date: Tue, 27 Mar 2018 13:49:05 +0200 Apply latest Server changes to reflect retweets Diffstat:
| M | src/app/api.service.ts | | | 4 | ++++ |
| M | src/app/tweet-list/tweet-list.component.html | | | 5 | +++-- |
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/app/api.service.ts b/src/app/api.service.ts @@ -11,6 +11,10 @@ export interface TweetsEntity { user_id: string; display_name: string; userprofile_link: string; + retweetby_username?: string; + retweetby_user_id?: string; + retweetby_display_name?: string; + retweetby_userprofile_link?: string; tweet_link?: string; text: string; image_urls?: (string)[]; diff --git a/src/app/tweet-list/tweet-list.component.html b/src/app/tweet-list/tweet-list.component.html @@ -8,8 +8,9 @@ </div> <mat-card-header> <img src="https://twitter.com/{{item.username}}/profile_image" mat-card-avatar> - <mat-card-title>{{item.display_name}}</mat-card-title> - <mat-card-subtitle><i class="fa fa-clock-o"> </i>{{item.created_at.toLocaleString()}}</mat-card-subtitle> + <mat-card-title><a href="{{item.userprofile_link}}">{{item.display_name}}</a></mat-card-title> + <mat-card-subtitle *ngIf="!item.retweetby_display_name"><i class="fa fa-clock-o"> </i>{{item.created_at.toLocaleString()}}</mat-card-subtitle> + <mat-card-subtitle *ngIf="item.retweetby_display_name"><i class="fa fa-clock-o"> </i>{{item.created_at.toLocaleString()}} -- Retweeted by: <a href="{{item.retweetby_userprofile_link}}">{{item.retweetby_display_name}}</a></mat-card-subtitle> </mat-card-header> <a (click)="lightbox.show(lightboxItem)" > <img mat-card-image *ngIf="item.image_urls && item.image_urls[0]" [src]="item.image_urls[0]">