mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Merge branch 'fix_cia' into date_comparison
This commit is contained in:
@@ -539,6 +539,7 @@ class User_Model extends CI_Model {
|
||||
$ls = strtotime($u->row()->last_seen ?? '1971-01-01');
|
||||
$n = time();
|
||||
if (($n - $ls) > 60) { // Reduce load. 'set_last_seen()' Shouldn't be called at anytime. 60 seconds diff is enough.
|
||||
|
||||
$this->set_last_seen($u->row()->user_id);
|
||||
}
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user