webbuild-cgi: show current user social log messages when WEBBUILD_URL is not set
This commit is contained in:
parent
b24249e474
commit
72ce4f5115
@ -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 [ "$USER" ]; then
|
||||
if [ "$WEBBUILD_URL" -a "$USER" ]; 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;"
|
||||
|
Loading…
Reference in New Issue
Block a user