From dab56b358f1b265f8c15bf89dbce767c49111be3 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 16 Dec 2020 20:39:46 +0100 Subject: [PATCH] webbuild-cgi: fix for lost messages in social log --- webbuild/webbuild-cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webbuild/webbuild-cgi b/webbuild/webbuild-cgi index 6f7fa6a..7f7daa3 100755 --- a/webbuild/webbuild-cgi +++ b/webbuild/webbuild-cgi @@ -217,7 +217,7 @@ if [ "$REQUEST" = "refresh" -o "$REQUEST" = "refreshsocial" -o ! "$USER" ]; then fi FROMID=`sqlite3 $WEBBUILD_STATEDIR/webbuild.db "$LASTID_QUERY"` fi - sqlite3 $WEBBUILD_STATEDIR/webbuild.db "SELECT *,strftime('%s',time) FROM social_log WHERE id>$FROMID LIMIT 100" | while read line; do + sqlite3 $WEBBUILD_STATEDIR/webbuild.db "SELECT *,strftime('%s',time) FROM social_log WHERE id>=$FROMID LIMIT 100" | while read line; do SAVEIFS=$IFS IFS="|" set -- $line