diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-09 16:52:00 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-09 16:52:00 -0700 |
commit | 03357481f73d506ae36be9858dc757842408c6a9 (patch) | |
tree | a69772d6caf71f4986a26eb80d00ac4e8750b995 /mod/post.php | |
parent | ec1dcb8f2eccfd1a0dfc9c7eccea788a4b385e41 (diff) | |
parent | 805e2a28ee81febee2742587a1640b5fae1387a2 (diff) | |
download | volse-hubzilla-03357481f73d506ae36be9858dc757842408c6a9.tar.gz volse-hubzilla-03357481f73d506ae36be9858dc757842408c6a9.tar.bz2 volse-hubzilla-03357481f73d506ae36be9858dc757842408c6a9.zip |
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts:
install/schema_mysql.sql
mod/home.php
mod/page.php
view/nl/messages.po
view/nl/strings.php
Diffstat (limited to 'mod/post.php')
-rw-r--r-- | mod/post.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/post.php b/mod/post.php index fe0860cc6..66a354ead 100644 --- a/mod/post.php +++ b/mod/post.php @@ -745,8 +745,13 @@ function post_post(&$a) { $sender_hash = make_xchan_hash($arr['guid'],$arr['guid_sig']); // garbage collect any old unused notifications + + // This was and should be 10 minutes but my hosting provider has time lag between the DB and + // the web server. We should probably convert this to webserver time rather than DB time so + // that the different clocks won't affect it and allow us to keep the time short. + q("delete from verify where type = 'auth' and created < %s - INTERVAL %s", - db_utcnow(), db_quoteinterval('10 MINUTE') + db_utcnow(), db_quoteinterval('30 MINUTE') ); $y = q("select xchan_pubkey from xchan where xchan_hash = '%s' limit 1", |