diff --git a/WebKit/css/default.css b/WebKit/css/default.css index fc84b85..4ca62f9 100644 --- a/WebKit/css/default.css +++ b/WebKit/css/default.css @@ -248,3 +248,7 @@ li:hover .reply_to, li:hover .retweet, li:hover .remove { background-position: -128px 0; top: 20px; } + +.mentioned { + border-right: 5px solid #00317a; +} diff --git a/WebKit/scripts/helper/Core.js b/WebKit/scripts/helper/Core.js index 2a97e4a..614c5e4 100644 --- a/WebKit/scripts/helper/Core.js +++ b/WebKit/scripts/helper/Core.js @@ -212,6 +212,7 @@ function(jQuery, Paths, URI, HostApp, Followings) { template.in_reply.parentNode.className = "hidden"; var text = status.content.text.escapeHTML().replace(/\n/g, "
"); + var entities = [status.entity]; status.mentions.map(function (mention) { entities.push(mention.entity) @@ -222,6 +223,14 @@ function(jQuery, Paths, URI, HostApp, Followings) { ); 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"); time.innerText = this.ISODateString(new Date(status.published_at * 1000));