|
@@ -131,7 +131,8 @@ export class TweetBodyComponent {
|
|
|
const res = [];
|
|
|
mentions.forEach(element => {
|
|
|
const apiEntity = this.entities.user_mentions.filter(
|
|
|
- el => el.screen_name === element["screenName"]
|
|
|
+ el =>
|
|
|
+ el.screen_name.toLowerCase() === element["screenName"].toLowerCase()
|
|
|
)[0];
|
|
|
res.push({
|
|
|
start: element.indices[0],
|
|
@@ -148,7 +149,7 @@ export class TweetBodyComponent {
|
|
|
const res = [];
|
|
|
urls.forEach(element => {
|
|
|
const apiEntity = this.entities.urls.filter(
|
|
|
- el => el.url === element["url"]
|
|
|
+ el => el.url.toLowerCase() === element["url"].toLowerCase()
|
|
|
)[0];
|
|
|
res.push({
|
|
|
start: element.indices[0],
|