bug in profile popup not displaying if we're following or not

This commit is contained in:
Hannes Mannerheim 2014-11-25 23:36:29 +01:00
parent 5e8c84edb2
commit 3701985e7f

View File

@ -859,20 +859,19 @@ $('body').on('click','a', function(e) {
if(data) {
// local profile id
// local profile id and follow class
var followLocalIdHtml = '';
var followingClass = '';
if(typeof data.local != 'undefined') {
followLocalIdHtml = ' data-follow-user-id="' + data.local.id + '"';
if(data.local.following) {
followingClass = 'following';
}
}
// empty strings and zeros instead of null
data = cleanUpUserObject(data.external);
// profile card
var followingClass = '';
if(data.following) {
followingClass = 'following';
}
// old statusnet-versions might not have full avatar urls in their api response
if(typeof data.profile_image_url_original == 'undefined'