|
@@ -16,12 +16,20 @@ export class TweetBodyComponent {
|
|
|
|
|
|
constructor() {}
|
|
|
|
|
|
- get text(): string {
|
|
|
- return this.data["full_text"];
|
|
|
+ get status(): string {
|
|
|
+ if(this.data["retweeted_status"]) {
|
|
|
+ return this.data["retweeted_status"]["full_text"];
|
|
|
+ } else {
|
|
|
+ return this.data["full_text"];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
get entities(){
|
|
|
- return this.data["entities"];
|
|
|
+ if(this.data["retweeted_status"]) {
|
|
|
+ return this.data["retweeted_status"]["entities"];
|
|
|
+ } else {
|
|
|
+ return this.data["entities"];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
get hasPhoto() {
|