announce when new users are submitted

This commit is contained in:
Christine Dodrill 2016-02-12 02:46:59 -08:00
parent 34d2bbe207
commit ba941a3029
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,9 @@ routes:
db.updateTweetsByUser(username, url) db.updateTweetsByUser(username, url)
db.exec(sql"insert into users values (null, ?, ?)", 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" redirect "/users/" & username & "/0"
except: fail() except: fail()