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 wrap: on
line diff
--- 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 ;;

yatex.org