pub / newsplanet

Planet-Style Newsfeed generated with perlanet
git clone https://src.jayvii.de/pub/newsplanet.git
Home | Log | Files | Exports | Refs | README | RSS

commit 0a8638598b37c0c27a31d8d6381c6f007dd64ed7
parent d05570940dc522127c2c9c389b88e45863d7e4f4
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Tue, 22 Apr 2025 17:36:18 +0200

fix: adjust inactivity detection for mini-feed

Diffstat:
Mscripts/run.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/run.sh b/scripts/run.sh @@ -112,7 +112,7 @@ done # insert important feed at the top if [ ! -z $sub_feed_file ]; then printf "Insert sub-feed if there are active entries...\n" - if [ $(grep "<section" $sub_feed_file | grep -cv "inactive") -gt 0 ]; then + if [ $(grep "<section" $sub_feed_file | grep -cv "data-inactive=\"true\"") -gt 0 ]; then sub_feed_injection="<blockquote><strong>$sub_feed_title<\/strong><iframe class=\"subfeed\" src=\"$sub_feed_file\"><\/iframe><\/blockquote>" sed -e "s/<\!--SUBFEED-->/$sub_feed_injection/g" -i $page_file fi