fixes issue #5

This commit is contained in:
Hannes Mannerheim 2016-01-24 14:02:50 +01:00
parent a47ea60100
commit 087ef6cf95

View File

@ -802,7 +802,7 @@ function updateUserDataInStream() {
// cover photos // cover photos
$.each($('.profile-header-inner[data-user-id="' + userArray.local.id + '"]'),function(){ $.each($('.profile-header-inner[data-user-id="' + userArray.local.id + '"]'),function(){
if($(this).css('background-image') != 'url("' + userArray.local.cover_photo + '")') { if($(this).css('background-image') != 'url("' + userArray.local.cover_photo + '")' && userArray.local.cover_photo != false) {
$(this).css('background-image','url("' + userArray.local.cover_photo + '")'); $(this).css('background-image','url("' + userArray.local.cover_photo + '")');
} }
}); });