summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/stream/hootstream.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/views/stream/hootstream.js')
-rw-r--r--public/assets/js/lib/views/stream/hootstream.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/public/assets/js/lib/views/stream/hootstream.js b/public/assets/js/lib/views/stream/hootstream.js
index bfdf5d1..7f4ff88 100644
--- a/public/assets/js/lib/views/stream/hootstream.js
+++ b/public/assets/js/lib/views/stream/hootstream.js
@@ -120,6 +120,11 @@ var HootStream = View.extend({
},
renderThread: function ({ thread, comments, files, images }) {
+ if (!thread?.length) {
+ console.error("Missing thread");
+ console.error(thread, comments, files, images);
+ return ["<div>Missing thread!</div>"];
+ }
thread = thread.shift();
// console.log(thread, comments, files, images);
const postedToday = +new Date() / 1000 - thread.lastmodified < 86400;