Mercurial > hgrepos > hgweb.cgi > s4
diff s4-blog.sh @ 1042:99ba706d5fdb draft
Update ctime on (un)set frozen on blog
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 02 May 2024 10:23:10 +0900 |
parents | 78e904f9be34 |
children | 9279d6901c77 |
line wrap: on
line diff
--- a/s4-blog.sh Sun Apr 21 12:16:44 2024 +0900 +++ b/s4-blog.sh Thu May 02 10:23:10 2024 +0900 @@ -582,7 +582,7 @@ else mv -f $cachefile.$$ $cachefile fi - test -n "$stampfile" && date "+%F %T" > $stampfile + test -n "$stampfile" && curtimestamp > $stampfile fi if [ -n "$fa" ]; then replhref="s/a href=[^>]*>/a>/" @@ -1397,6 +1397,7 @@ else # With full permission blogid=`query "SELECT id FROM blog WHERE rowid=$rid;"` dbsetbyid blog "$blogid" "$2" "$3" + dbsetbyid blog "$blogid" ctime "`curtimestamp`" # Update ctime 2024-05-02 code=0 fi # echo "{\"code\": $code, \"message\": \"foo\"}"; exit @@ -1581,9 +1582,9 @@ blog_notify_reply $rowid $user "$text" $act if [ -n "$grprowid" ]; then qgrp=$(sqlquote "$owner") - dbsetbyid grp "$owner" wtime "`date '+%F %T'`" + dbsetbyid grp "$owner" wtime "`curtimestamp`" else - dbsetbyid user "$user" wtime "`date '+%F %T'`" + dbsetbyid user "$user" wtime "`curtimestamp`" fi ;; esac