From ba941a302940212bb87a69b49f6fa7a906913e0b Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 12 Feb 2016 02:46:59 -0800 Subject: [PATCH] announce when new users are submitted --- src/twtxtlist.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/twtxtlist.nim b/src/twtxtlist.nim index 094c2f3..91191c2 100644 --- a/src/twtxtlist.nim +++ b/src/twtxtlist.nim @@ -101,6 +101,9 @@ routes: db.updateTweetsByUser(username, url) db.exec(sql"insert into users values (null, ?, ?)", username, url) + db.exec(sql"insert into tweets values (null, 'twtxtlist', ?, ?)", + $(getTime().getGMTime().timeinfoToTime().toSeconds()), + "Added user " & username & " " & url) redirect "/users/" & username & "/0" except: fail()