summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/index/lastlog.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/views/index/lastlog.js')
-rw-r--r--public/assets/js/lib/views/index/lastlog.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/index/lastlog.js b/public/assets/js/lib/views/index/lastlog.js
index 2f7b224..0fed101 100644
--- a/public/assets/js/lib/views/index/lastlog.js
+++ b/public/assets/js/lib/views/index/lastlog.js
@@ -18,11 +18,12 @@ var LastLog = View.extend({
},
load: function(lastlog){
- var s = lastlog.map(this.parse.bind(this)).join(', ')
+ var s = lastlog.map(this.parse.bind(this)).filter(s => s).join(', ')
this.$el.html(s)
},
parse: function(user){
+ if (Date.now()/1000 - user.lastseen > 86400 * 14 *10000) return ''
var t = this.template
.replace(/{{username}}/g, user.username)
.replace(/{{age}}/g, get_age(user.lastseen) )