From 5b482c1daf1774b185df1e165d04df3de21fb730 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 7 Jun 2015 23:04:46 -0700 Subject: magic auth issues on dreamhost --- mod/post.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mod/post.php') diff --git a/mod/post.php b/mod/post.php index 95931a3f0..908b9eb1d 100644 --- a/mod/post.php +++ b/mod/post.php @@ -757,8 +757,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", -- cgit v1.2.3