diff --git a/webbuild/webbuild-cgi b/webbuild/webbuild-cgi index b0e47bc..056b4b1 100755 --- a/webbuild/webbuild-cgi +++ b/webbuild/webbuild-cgi @@ -211,7 +211,7 @@ fi # Public requests # if [ "$REQUEST" = "refresh" -o "$REQUEST" = "refreshsocial" -o ! "$USER" ]; then - if [ "$WEBBUILD_URL" -a "$USER" -a "${WEBBUILD_URL/\/localhost\//}" = "$WEBBUILD" ]; then + if [ "$WEBBUILD_URL" -a "${WEBBUILD_URL/\/localhost\//}" = "$WEBBUILD_URL" ]; then curl -s "$WEBBUILD_URL?REQUEST=refreshsocial&USER=$USER&SECRET=`cgi_encodevar \"$USER_SECRET\"`&USER_EMAIL=$USER_EMAIL&FROMID=$FROMID" else [ -e "$WEBBUILD_STATEDIR/social_log" ] || exit