pub / stories

Top News Aggregator
git clone src.jayvii.de/pub/stories.git
Home | Log | Files | Exports | Refs | RSS

commit 1053b1d1f71f01655229a6ee33b4f2bb263075c4
parent 15af59a9f0e856633d8e6a85509f3bc566539995
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Tue, 29 Sep 2026 20:41:09 +0200

fix: only increase counter if relevant

Diffstat:
Mindex.tt | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/index.tt b/index.tt @@ -79,17 +79,17 @@ $counter = 0; foreach ($news as $entry) { - $counter++; - if ($counter > 24) { - continue; - } - if ($entry["date"] < strtotime("-24 hours")) { continue; } if ($entry["content"] == "" || $entry["content"] == $entry["title"]) { continue; } + $counter++; + if ($counter > 20) { + continue; + } + $entry["content"] = preg_replace( '/<[^>]+>/',