From 61a940cc82cf9c3f0b8418bffca3a5e6250ca3c7 Mon Sep 17 00:00:00 2001
From: chylex <info@chylex.com>
Date: Sat, 24 Dec 2016 16:57:30 +0100
Subject: [PATCH] Fix highlighted tweet context menu for tweet detail view

---
 Resources/Scripts/code.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Resources/Scripts/code.js b/Resources/Scripts/code.js
index cbed65a4..c900fa6f 100644
--- a/Resources/Scripts/code.js
+++ b/Resources/Scripts/code.js
@@ -293,7 +293,7 @@
       if (e.type === "mouseenter"){
         highlightedTweetEle = $(this);
         
-        var link = $(this).find("time").first().children("a").first();
+        var link = $(this).parent().hasClass("js-tweet-detail") ? $(this).find("a[rel='url']").first() : $(this).find("time").first().children("a").first();
         var embedded = $(this).find(".quoted-tweet[data-tweet-id]").first();
         
         updateHighlightedTweet(link.length > 0 ? link.attr("href") : "", embedded.length > 0 ? embedded.find(".account-link").first().attr("href")+"/status/"+embedded.attr("data-tweet-id") : "");