From 506e531ec83121ec191ba55881999e4fd4510321 Mon Sep 17 00:00:00 2001 From: Silvan Date: Mon, 22 Apr 2024 00:35:00 +0200 Subject: [PATCH] webbuild-cgi: social log exception for "autodist" when WEBBUILD_URL is set at localhost --- webbuild/webbuild-cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webbuild/webbuild-cgi b/webbuild/webbuild-cgi index 1ef3c52..6973386 100755 --- a/webbuild/webbuild-cgi +++ b/webbuild/webbuild-cgi @@ -204,7 +204,7 @@ if [ "$REQUEST" = "refresh" -o "$REQUEST" = "refreshsocial" -o ! "$USER" ]; then SID=0 if [ ! "$FROMID" -o "$FROMID" = "0" -o "$FROMID" = "NaN" ]; then # Find id of last row - 25 - if [ "$WEBBUILD_URL" -a "$USER" ]; then + if [ "$USER" -a "$USER" != "autodist" ]; then LASTID_QUERY="SELECT id FROM (SELECT id FROM social_log WHERE user!='$USER' ORDER BY id DESC LIMIT 25) sub ORDER BY id ASC LIMIT 1;" else LASTID_QUERY="SELECT id FROM (SELECT id FROM social_log WHERE target!='developers' ORDER BY id DESC LIMIT 25) sub ORDER BY id ASC LIMIT 1;"