From 7ee2e27bf2ce0c78530ee1ab0b18e7cf975356c5 Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Mon, 10 Apr 2017 20:29:19 +0200 Subject: [PATCH] show hover cards on first hover for previously unknown external profiles --- js/qvitter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/qvitter.js b/js/qvitter.js index 60877f5..eddd6b0 100644 --- a/js/qvitter.js +++ b/js/qvitter.js @@ -386,7 +386,7 @@ function getUserArrayData(maybeProfileUrl,maybeNickname,timeNow,targetElement,ca if((typeof window.userArrayLastRetrieved[maybeProfileUrl] == 'undefined') || (timeNow - window.userArrayLastRetrieved[maybeProfileUrl]) > 60000) { window.userArrayLastRetrieved[maybeProfileUrl] = timeNow; getFromAPI('qvitter/external_user_show.json?profileurl=' + encodeURIComponent(maybeProfileUrl),function(data){ - if(data && data.external !== null) { + if(data) { // we want hover cards to appear _at least_ 600ms after hover (see below) var timeAfterServerQuery = new Date().getTime();