diff options
| author | julian laplace <julescarbon@gmail.com> | 2022-10-26 17:16:39 +0200 |
|---|---|---|
| committer | julian laplace <julescarbon@gmail.com> | 2022-10-26 17:16:39 +0200 |
| commit | 211098a597935494276aa1e43fb92397d549606b (patch) | |
| tree | 807be04501b47e6d89741cb834ab01c3fbd65079 | |
| parent | 613b1618482fdd16ad80d8dd8a7e3ab0345617f2 (diff) | |
opacity
| -rw-r--r-- | public/assets/js/lib/views/stream/hootstream.js | 7 | ||||
| -rw-r--r-- | public/assets/js/util/format.js | 6 |
2 files changed, 9 insertions, 4 deletions
diff --git a/public/assets/js/lib/views/stream/hootstream.js b/public/assets/js/lib/views/stream/hootstream.js index 4be70bd..dd64aa4 100644 --- a/public/assets/js/lib/views/stream/hootstream.js +++ b/public/assets/js/lib/views/stream/hootstream.js @@ -205,7 +205,12 @@ var HootStream = View.extend({ "hoot", hoot, ]), - ...lastlog.map((user) => [1, user.lastseen, "lastlog", user]), + ...(query.has_query ? [] : lastlog).map((user) => [ + 1, + user.lastseen, + "lastlog", + user, + ]), ] .sort((a, b) => b[1] - a[1]) .reduce( diff --git a/public/assets/js/util/format.js b/public/assets/js/util/format.js index aac8311..55b57c2 100644 --- a/public/assets/js/util/format.js +++ b/public/assets/js/util/format.js @@ -263,9 +263,9 @@ const age_scale = [ [60 * 60, 0.95], [60 * 60 * 8, 0.9], [60 * 60 * 24, 0.85], - [60 * 60 * 24 * 7, 0.65], - [60 * 60 * 24 * 7 * 4, 0.55], - [60 * 60 * 24 * 7 * 4 * 12, 0.5], + [60 * 60 * 24 * 7, 0.8], + [60 * 60 * 24 * 7 * 4, 0.75], + [60 * 60 * 24 * 7 * 4 * 12, 0.7], ]; function get_age_opacity(t) { var age = Math.abs(Date.now() / 1000 - t); |
