fixed #32
This commit is contained in:
parent
76b63d5c68
commit
8d358e3ac6
2 changed files with 13 additions and 0 deletions
|
@ -248,3 +248,7 @@ li:hover .reply_to, li:hover .retweet, li:hover .remove {
|
||||||
background-position: -128px 0;
|
background-position: -128px 0;
|
||||||
top: 20px;
|
top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mentioned {
|
||||||
|
border-right: 5px solid #00317a;
|
||||||
|
}
|
||||||
|
|
|
@ -212,6 +212,7 @@ function(jQuery, Paths, URI, HostApp, Followings) {
|
||||||
template.in_reply.parentNode.className = "hidden";
|
template.in_reply.parentNode.className = "hidden";
|
||||||
|
|
||||||
var text = status.content.text.escapeHTML().replace(/\n/g, "<br>");
|
var text = status.content.text.escapeHTML().replace(/\n/g, "<br>");
|
||||||
|
|
||||||
var entities = [status.entity];
|
var entities = [status.entity];
|
||||||
status.mentions.map(function (mention) {
|
status.mentions.map(function (mention) {
|
||||||
entities.push(mention.entity)
|
entities.push(mention.entity)
|
||||||
|
@ -222,6 +223,14 @@ function(jQuery, Paths, URI, HostApp, Followings) {
|
||||||
);
|
);
|
||||||
|
|
||||||
this.findMentions(template.message, status.mentions);
|
this.findMentions(template.message, status.mentions);
|
||||||
|
|
||||||
|
for (var i = 0; i < status.mentions.length; i++) {
|
||||||
|
var mention = status.mentions[i];
|
||||||
|
if (mention.entity == HostApp.stringForKey("entity")) {
|
||||||
|
this.template.item.className = "mentioned";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var time = document.createElement("abbr");
|
var time = document.createElement("abbr");
|
||||||
time.innerText = this.ISODateString(new Date(status.published_at * 1000));
|
time.innerText = this.ISODateString(new Date(status.published_at * 1000));
|
||||||
|
|
Reference in a new issue