summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/assets/js/lib/views/stream/hootstream.js7
-rw-r--r--public/assets/js/util/format.js6
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);