s4
changeset 327:5e56160ad1f5
Use the last profimg as profile image instead of first one.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Fri, 21 Oct 2016 16:26:52 +0859 |
parents | d19e85a72a29 |
children | d89412dc78a1 |
files | s4-funcs.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/s4-funcs.sh Fri Oct 21 16:22:12 2016 +0859 1.2 +++ b/s4-funcs.sh Fri Oct 21 16:26:52 2016 +0859 1.3 @@ -1509,7 +1509,7 @@ 1.4 dir="$1" tbl="$2" 1.5 keycond="$3" 1.6 whos="$keycond AND key='profimg' AND type LIKE 'file:image%' 1.7 - ORDER BY rowid LIMIT 1" 1.8 + ORDER BY rowid DESC LIMIT 1" 1.9 [ -d "$dir" ] || mkdir $dir 1.10 case "$4" in 1.11 [Ss]) size=S ;;