|
@@ -18,9 +18,14 @@ export class TweetBodyComponent {
|
|
|
|
|
|
get status(): string {
|
|
|
if (this.data["retweeted_status"]) {
|
|
|
- return this.data["retweeted_status"]["full_text"];
|
|
|
+ const range = this.data["retweeted_status"]["display_text_range"];
|
|
|
+ return this.data["retweeted_status"]["full_text"].substr(
|
|
|
+ range[0],
|
|
|
+ range[1]
|
|
|
+ );
|
|
|
} else {
|
|
|
- return this.data["full_text"];
|
|
|
+ const range = this.data["display_text_range"];
|
|
|
+ return this.data["full_text"].substr(range[0], range[1]);
|
|
|
}
|
|
|
}
|
|
|
|