[fix][partial] External profil cards are not shown

- https://git.gnu.io/h2p/Qvitter/issues/91
This commit is contained in:
Denis Chenu 2017-04-08 00:31:06 +02:00
parent 79824422c2
commit b3f391ee20

View File

@ -488,7 +488,6 @@ function buildProfileCard(data) {
· · · · · · · · · */
function buildExternalProfileCard(data) {
// follows me?
var follows_you = '';
if(data.local !== null && data.local.follows_you === true && window.loggedIn.id != data.local.id) {
@ -497,7 +496,7 @@ function buildExternalProfileCard(data) {
// follow button
var followButton = '';
if(window.loggedIn !== false && typeof data.local != 'undefined' && data.local !== null) {
if(window.loggedIn !== false && typeof data.local != 'undefined' && data.local) {
var followButton = buildFollowBlockbutton(data.local);
}
@ -1037,7 +1036,7 @@ function setNewCurrentStream(streamObject,setLocation,fallbackId,actionOnSuccess
}
// add this stream to the history menu
addStreamToHistoryMenuAndMarkAsCurrent(streamObject);
addStreamToHistoryMenuAndMarkAsCurrent(streamObject);
// profile card from user array
if(userArray) {