]> bicyclesonthemoon.info Git - ott/mirror/commitdiff
Preserve original post time when editing
authorb <rowerynaksiezycu@gmail.com>
Sat, 12 Aug 2023 17:19:22 +0000 (17:19 +0000)
committerb <rowerynaksiezycu@gmail.com>
Sat, 12 Aug 2023 17:19:22 +0000 (17:19 +0000)
makefile
makefile.1.mak
post.1.c
settings.txt

index 5d203dcbcb8a257fb4ab907ad443674a6f31a416..0fd343dbb7ea4648cb6eb51058845b8ac111b733 100644 (file)
--- a/makefile
+++ b/makefile
@@ -197,7 +197,8 @@ verify.awk\
 view.1.c\
 view.1.awk\
 www\
-bot2m.1.pl
+bot2m.1.pl\
+config
 
 
 DIR=\
index 96a32bfb8430a59fa1881f989f6f647f8a5c0d2d..83fd5941237efc19c2c6040d590d0446d2437384 100644 (file)
@@ -197,7 +197,8 @@ verify.awk\
 view.1.c\
 view.1.awk\
 www\
-bot2m.1.pl
+bot2m.1.pl\
+config
 
 
 DIR=\
index 1feb22697283dedb9b1e8296021e62013452e3df..247f55acd26e89e4d7da2335469ccea1d01a41e5 100644 (file)
--- a/post.1.c
+++ b/post.1.c
@@ -1,8 +1,7 @@
 // OTT mirror
-// Copyright (C) 2014, 2022 Balthasar Szczepański
+// Copyright (C) 2014, 2022, 2023 Balthasar Szczepański
 // post.c automatically generated from post.1.c
 // write posts from the mirror.
-// 09.10.2022
 //
 // This file is part of OTT mirror.
 //
@@ -231,10 +230,16 @@ void submit()
        unsigned long lastpage;
        unsigned short postslast;
        char listpath[N_STRBUF];
+       long long time_n;
        
        posttime=time(NULL);
        if(forceID[0]!='\0')
+       {
                snprintf(timenumber,N_STRBUF_SH,"%s",forceID);
+               time_n = atoll(forceID);
+               if (time_n != 0)
+                       posttime = (time_t) time_n;
+       }
        else
                snprintf(timenumber,N_STRBUF_SH,"%llu",(unsigned long long)posttime);
        strftime(timetext,N_STRBUF-1,"%a %b %d, %Y %I:%M %p %Z",gmtime(&posttime));
index 4cce1910ecde88bc25a586c92e8d10c162d54d07..847fb68bda444ef8af48127289f54fc652886f40 100644 (file)
@@ -129,7 +129,6 @@ _www_sig_path_    = @_PATH($_www_sig_path,  )
 _www_up_path_     = @_PATH($_www_up_path,   )
 
 
-MAKE_CONFIGURE = CONFIGURE =$configure
 MAKE_TARGET    = TARGET    =$target
 
 MAKE_CHMOD  = CHMOD=$chmod