summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordzwdz2025-02-21 04:21:11 +0100
committerdzwdz2025-02-21 04:21:11 +0100
commitf5723ea121b7614a39fff8ee99cab76b369ac003 (patch)
treef7112d06147984da6b1a1a60d5c0a9ceb0910687
parent8d1c0517ceb870b38fb7c5a8c63a2e1023109760 (diff)
fix spoilers on reblogsHEADmain
-rw-r--r--app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app.js b/app.js
index d67f69b..fad93bb 100644
--- a/app.js
+++ b/app.js
@@ -29,6 +29,7 @@ let active_day = date_add(new Date(), -1);
let Post = {
oninit: function(vnode) {
let post = vnode.attrs.post;
+ if (post.reblog) post = post.reblog;
vnode.state.chuj = post.spoiler_text;
vnode.state.collapsed = post.spoiler_text.length > 0;
},