diff --git a/inc/mod/pages.php b/inc/mod/pages.php index ce643cb5..8feac374 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1901,7 +1901,7 @@ function mod_debug_antispam() { function mod_debug_recent_posts() { global $pdo, $config; - $limit = 150; + $limit = 500; $boards = listBoards(); diff --git a/templates/mod/debug/recent_posts.html b/templates/mod/debug/recent_posts.html index 9da5c0d2..740ed21e 100644 --- a/templates/mod/debug/recent_posts.html +++ b/templates/mod/debug/recent_posts.html @@ -13,7 +13,7 @@ {% for post in posts %} - {{ post.time | ago }} ago + {{ post.time | ago }} ago {{ config.board_abbreviation|sprintf(post.board) }} @@ -29,51 +29,59 @@ - {% if post.thread %} - {{ post.thread }} - {% else %} - (OP) - {% endif %} + + {% if post.thread %} + {{ post.thread }} + {% else %} + (OP) + {% endif %} + - - {{ post.ip }} - - - - {% if post.email|length > 0 %} - {# start email #} - - {% endif %} - {% set capcode = post.capcode|capcode %} - {{ post.name }} - {% if post.trip|length > 0 %} - {{ post.trip }} - {% endif %} - {% if post.email|length > 0 %} - {# end email #} + {% if mod|hasPermission(config.mod.show_ip, post.board) %} + + {{ post.ip }} + {% else %} + hidden {% endif %} - {% if capcode %} - {{ capcode.cap }} - {% endif %} + + + + {% if post.email|length > 0 %} + {# start email #} + + {% endif %} + {% set capcode = post.capcode|capcode %} + {{ post.name }} + {% if post.trip|length > 0 %} + {{ post.trip }} + {% endif %} + {% if post.email|length > 0 %} + {# end email #} + + {% endif %} + {% if capcode %} + {{ capcode.cap }} + {% endif %} + {% if post.subject %} - {{ post.subject }} + {{ post.subject }} {% else %} – {% endif %} {% if post.file %} - {{ post.file }} ({{ post.filesize | filesize }}) + {{ post.file }} ({{ post.filesize | filesize }}) {% else %} – {% endif %} - {{ post.snippet }} + {{ post.snippet }} {% endfor %}