From 3a5a57bf64dd2811da912ff4db16fbc2db7284db Mon Sep 17 00:00:00 2001 From: Appleman1234 Date: Tue, 6 Jul 2021 19:36:48 +1000 Subject: Update catalog to rebuild on most rebuild causing events, as well as have subject being link to post --- templates/themes/catalog/catalog.html | 3 ++- templates/themes/catalog/theme.php | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/themes/catalog/catalog.html b/templates/themes/catalog/catalog.html index a932278d..b5f2e832 100644 --- a/templates/themes/catalog/catalog.html +++ b/templates/themes/catalog/catalog.html @@ -68,9 +68,10 @@ R: {{ post.reply_count }} / I: {{ post.image_count }}{% if post.sticky %} (sticky){% endif %}{% if post.locked %}  {% endif %} {% if post.subject %}

+ {{ post.subject|e }} - +

{% else %}
diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 81148882..bc312fc0 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -27,7 +27,7 @@ } } } elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete') - || $action == 'sticky' || ($action == 'lock' && in_array($board, $boards))) { + || $action == 'sticky' || ($action == 'lock' && in_array($board, $boards))) { $b = new Catalog($settings); $action = generation_strategy("sb_catalog", array($board)); @@ -37,7 +37,8 @@ } elseif ($action == 'rebuild') { $b->build($settings, $board); - } + } + $b->build($settings, $board); } // FIXME: Check that Ukko is actually enabled -- cgit v1.3