fix error when checking for mentions of self, and tweak the color again
This commit is contained in:
parent
149c100206
commit
62fb31b68e
2 changed files with 7 additions and 5 deletions
|
@ -145,6 +145,7 @@ export class StreamPage {
|
||||||
}
|
}
|
||||||
// res.data[i]['reposted_by_string'] = "Reposted by: " + reposted_by_string;
|
// res.data[i]['reposted_by_string'] = "Reposted by: " + reposted_by_string;
|
||||||
}
|
}
|
||||||
|
if (res.data[i].content) {
|
||||||
for (var j = 0; j < res.data[i]['content']['entities']['mentions'].length; j++) {
|
for (var j = 0; j < res.data[i]['content']['entities']['mentions'].length; j++) {
|
||||||
var men = res.data[i]['content']['entities']['mentions'][j]['text'];
|
var men = res.data[i]['content']['entities']['mentions'][j]['text'];
|
||||||
if (this.myUsername === men) {
|
if (this.myUsername === men) {
|
||||||
|
@ -152,6 +153,7 @@ export class StreamPage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.posts = res.data;
|
this.posts = res.data;
|
||||||
this.since_id = res.meta.max_id;
|
this.since_id = res.meta.max_id;
|
||||||
this.before_id = res.meta.min_id;
|
this.before_id = res.meta.min_id;
|
||||||
|
|
|
@ -29,7 +29,7 @@ $colors: (
|
||||||
danger: #f53d3d,
|
danger: #f53d3d,
|
||||||
light: #f4f4f4,
|
light: #f4f4f4,
|
||||||
dark: #222,
|
dark: #222,
|
||||||
mention: #f4f4f4
|
mention: #fffde7
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue