demon: fake timestamp for replaces default tip

Wed, 06 Mar 2024 02:54:34 +0100

author
Peter Gervai <grin@grin.hu>
date
Wed, 06 Mar 2024 02:54:34 +0100
changeset 10
d80db6c7a442
parent 9
43902b1af1b9

demon: fake timestamp for replaces

delinquent_files/demon.php file | annotate | diff | comparison | revisions
--- a/delinquent_files/demon.php	Wed Mar 06 02:34:25 2024 +0100
+++ b/delinquent_files/demon.php	Wed Mar 06 02:54:34 2024 +0100
@@ -616,7 +616,7 @@
 					'namespace' => $usage->gil_page_namespace_id ,
 					'timestamp' => $ts ,
 					'comment' => $comment ,
-					'log_id' => 0, # -1 ,
+					'log_id' => substr($ts,0,10), # was: -1 (into unsigned field!); db has a unique on action+page+log_id, so fake it hard
 					'log_timestamp' => $ts ,
 					'user' => $user ,
 					'done' => 0 ,

mercurial