diff --git a/js/qvitter.js b/js/qvitter.js index 509c8f9..a3d35f0 100644 --- a/js/qvitter.js +++ b/js/qvitter.js @@ -1048,6 +1048,12 @@ $('body').on('click','a', function(e) { followingClass = 'following'; } } + + // follows me? + var follows_you = ''; + if(data.local.follows_you === true && window.myUserID != data.local.id) { + var follows_you = '' + window.sL.followsYou + ''; + } // empty strings and zeros instead of null data = cleanUpUserObject(data.external); @@ -1070,7 +1076,7 @@ $('body').on('click','a', function(e) { } else { var cover_photo = data.profile_image_url_original; - } + } // is webpage empty? var emptyWebpage = ''; @@ -1090,7 +1096,7 @@ $('body').on('click','a', function(e) { var noticeHtml = buildQueetHtml(data.status); } - var profileCard = '

' + data.name + '

' + screenNameWithServer + '

' + data.description + '

' + data.location + ' · ' + data.url.replace('http://','').replace('https://','') + '

'; + var profileCard = '

' + data.name + '

' + screenNameWithServer + '' + follows_you + '

' + data.description + '

' + data.location + ' · ' + data.url.replace('http://','').replace('https://','') + '

'; popUpAction('popup-external-profile', screenNameWithServer,profileCard + noticeHtml,'' + window.sL.goToExternalProfile + '');