disregard protocol when comparing quoted notice urls

This commit is contained in:
Hannes Mannerheim 2016-01-10 20:55:04 +01:00
parent 74950a5325
commit 48f5cb0c8b

View File

@ -1971,7 +1971,7 @@ function buildQueetHtml(obj, idInStream, extraClasses, requeeted_by, isConversat
if(typeof qoutedNotice.url != 'undefined') {
quoteURLfoundInQueetText = false;
$.each(statusnetHTML.find('a').not('.quoted-notice'), function(){
if($(this).attr('href') == qoutedNotice.url && $(this).css('display') != 'none') {
if(removeProtocolFromUrl($(this).attr('href')) == removeProtocolFromUrl(qoutedNotice.url) && $(this).css('display') != 'none') {
quoteURLfoundInQueetText = true;
$(this).css('display','none');
$(this).after(qoutedNotice.html);