diff quotedb.tcl @ 459:6acd372d36da

quotedb: Do not update quote creation timestamp field when updating quote.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 21 Oct 2017 00:59:06 +0300
parents ac66900fd066
children ba7ed8f6d2ab
line wrap: on
line diff
--- a/quotedb.tcl	Tue Oct 17 10:58:02 2017 +0300
+++ b/quotedb.tcl	Sat Oct 21 00:59:06 2017 +0300
@@ -187,7 +187,7 @@
   qdb_handle eval $usql {
     set udiff [expr [unixtime] - $utime]
     if {$udiff < $maxdiff || $qoverride} {
-      set usql "UPDATE $utable SET utext='[utl_escape $uquote]', utime=[unixtime] WHERE id=$unum"
+      set usql "UPDATE $utable SET utext='[utl_escape $uquote]' WHERE id=$unum"
       if {![qdb_sql_exec $upublic $unick $uchan $usql]} {
         return 0
       } else {