From 5fbbce9cd9e3ea043a64402dd81f4fa5068a5bf5 Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Mon, 24 Nov 2014 16:17:40 +0100 Subject: [PATCH] one more user popup bugfix --- actions/qvitter.php | 2 +- js/qvitter.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/actions/qvitter.php b/actions/qvitter.php index 2ccdeb7..8d81838 100644 --- a/actions/qvitter.php +++ b/actions/qvitter.php @@ -719,7 +719,7 @@ class QvitterAction extends ApiAction - + diff --git a/js/qvitter.js b/js/qvitter.js index d8eb0e0..5c9c14b 100644 --- a/js/qvitter.js +++ b/js/qvitter.js @@ -906,8 +906,11 @@ $('body').on('click','a', function(e) { var followButton = '
'; // preview latest notice - data.status.user = data; - var noticeHtml = buildQueetHtml(data.status); + var noticeHtml = ''; + if(typeof data.status != 'undefined') { + data.status.user = data; + var noticeHtml = buildQueetHtml(data.status); + } var profileCard = '

' + data.name + '

' + screenNameWithServer + '

' + data.description + '

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

';