# HG changeset patch # User HIROSE Yuuji # Date 1477034838 -32374 # Node ID 5e56160ad1f5f7686ffebf6c515da6991f626eee # Parent d19e85a72a29632a5fb42f4bd466a57a1edee1db Use the last profimg as profile image instead of first one. diff -r d19e85a72a29 -r 5e56160ad1f5 s4-funcs.sh --- a/s4-funcs.sh Fri Oct 21 16:22:12 2016 +0859 +++ b/s4-funcs.sh Fri Oct 21 16:26:52 2016 +0859 @@ -1509,7 +1509,7 @@ dir="$1" tbl="$2" keycond="$3" whos="$keycond AND key='profimg' AND type LIKE 'file:image%' - ORDER BY rowid LIMIT 1" + ORDER BY rowid DESC LIMIT 1" [ -d "$dir" ] || mkdir $dir case "$4" in [Ss]) size=S ;;