diff --git a/mod/network.php b/mod/network.php index ea98004cb..4ca518f90 100644 --- a/mod/network.php +++ b/mod/network.php @@ -760,10 +760,12 @@ function networkThreadedView(App $a, $update, $parent) // Fetch a page full of parent items for this page if ($update) { if (!empty($parent)) { -logger('Blubb: '.$parent); $sql_extra4 = "`item`.`id` = ".intval($parent); } else { $sql_extra4 = "`item`.`unseen`"; + if (Config::get("system", "like_no_comment")) { + $sql_extra4 .= " AND `item`.`verb` = '".ACTIVITY_POST."'"; + } } $r = q("SELECT `item`.`parent-uri` AS `uri`, `item`.`parent` AS `item_id`, $sql_order AS `order_date` diff --git a/view/js/main.js b/view/js/main.js index 2d3d132c4..fd379b63b 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -9,7 +9,7 @@ function _resizeIframe(obj, desth) { if (h == (ch + 'px')) { return; } - if (desth == ch && ch>0) { + if (desth == ch && ch > 0) { obj.style.height = ch + 'px'; } setTimeout(_resizeIframe, 100, obj, ch); @@ -75,9 +75,9 @@ $(function() { $('body').on('click','[data-role="insert-formatting"]', function(e) { e.preventDefault(); var o = $(this); - var bbcode = o.data('bbcode'); + var bbcode = o.data('bbcode'); var id = o.data('id'); - if (bbcode=="img") { + if (bbcode == "img") { Dialog.doImageBrowser("comment", id); return; } @@ -99,7 +99,7 @@ $(function() { $(".onoff input").each(function() { val = $(this).val(); id = $(this).attr("id"); - $("#"+id+"_onoff ."+ (val==0?"on":"off")).addClass("hidden"); + $("#"+id+"_onoff ." + (val == 0 ? "on":"off")).addClass("hidden"); }); $(".onoff > a").click(function(event) { @@ -107,8 +107,8 @@ $(function() { var input = $(this).siblings("input"); var val = 1-input.val(); var id = input.attr("id"); - $("#"+id+"_onoff ."+ (val==0?"on":"off")).addClass("hidden"); - $("#"+id+"_onoff ."+ (val==1?"on":"off")).removeClass("hidden"); + $("#"+id+"_onoff ." + (val == 0 ? "on":"off")).addClass("hidden"); + $("#"+id+"_onoff ." + (val == 1 ? "on":"off")).removeClass("hidden"); input.val(val); }); @@ -130,7 +130,7 @@ $(function() { if (isSelected) { return false; } - menu = $( $(this).attr('rel') ); + menu = $($(this).attr('rel')); e.preventDefault(); e.stopPropagation(); if (menu.attr('popup') == "false") { @@ -166,8 +166,8 @@ $(function() { /* notifications template */ var notifications_tpl= unescape($("#nav-notifications-template[rel=template]").html()); - var notifications_all = unescape($('