@ -119,8 +119,19 @@ function postToElem( post, kind, promoted ) {
@@ -119,8 +119,19 @@ function postToElem( post, kind, promoted ) {
retweetedByElem.text('@'+retweeted_by);
}
if(typeof(promoted)!=='undefined'&&promoted)
if(typeof(promoted)!=='undefined'&&promoted){
elem.find('.post-propagate').remove();
}else{
if($.Options.getFilterLangSimulateOpt()){
// FIXME it's must be stuff from template actually
if(typeof(post['langFilter'])!=='undefined'){
elem.append('<div class="langFilterSimData">'+polyglot.t('This post is treated by language filter',{'treated':'<em>'+((post['langFilter']['pass'])?polyglot.t('passed'):polyglot.t('blocked'))+'</em>'})+'</div>');
elem.append('<div class="langFilterSimData">'+polyglot.t('Reason: this',{'this':'<em>'+post['langFilter']['reason']+'</em>'})+' // '+polyglot.t('Most possible language: this',{'this':'<em>'+post['langFilter']['prob'][0].toString()+'</em>'})+'</div>');
}else{
elem.append('<div class="langFilterSimData">'+polyglot.t('This post is treated by language filter',{'treated':'<em>'+polyglot.t('not analyzed')+'</em>'})+'</div>');
@ -235,15 +235,6 @@ function showPosts(req, posts)
@@ -235,15 +235,6 @@ function showPosts(req, posts)
}
if(streamPostAppended){
if($.Options.getFilterLangSimulateOpt()){
// FIXME it's should be stuff from template actually
if(typeof(post['langFilter'])!=='undefined'){
streamPost.append('<div class="langFilterSimData">'+polyglot.t('This post is treated by language filter',{'treated':'<em>'+((post['langFilter']['pass']===true)?polyglot.t('passed'):polyglot.t('blocked'))+'</em>'})+'</div>');
streamPost.append('<div class="langFilterSimData">'+polyglot.t('Reason: this',{'this':'<em>'+post['langFilter']['reason']+'</em>'})+' // '+polyglot.t('Most possible language: this',{'this':'<em>'+post['langFilter']['prob'][0].toString()+'</em>'})+'</div>');
}else{
streamPost.append('<div class="langFilterSimData">'+polyglot.t('This post is treated by language filter',{'treated':'<em>'+polyglot.t('not analyzed')+'</em>'})+'</div>');