notice.is_local can be -1 for silenced remote users, we can't use that for determining if a notice is local. use user.is_local instead

This commit is contained in:
Hannes Mannerheim 2016-02-23 12:03:01 +01:00
parent b1852c79c0
commit 35f6515cab

View File

@ -2112,7 +2112,7 @@ function buildQueetHtml(obj, idInStream, extraClasses, requeeted_by, isConversat
// external
var ostatusHtml = '';
if(obj.is_local === false) {
if(obj.user.is_local === false) {
ostatusHtml = '<a target="_blank" data-tooltip="' + window.sL.goToOriginalNotice + '" class="ostatus-link" href="' + obj.external_url + '"></a>';
var qSource = '<a href="' + obj.external_url + '">' + getHost(obj.external_url) + '</a>';
}