From f5723ea121b7614a39fff8ee99cab76b369ac003 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 21 Feb 2025 04:21:11 +0100 Subject: fix spoilers on reblogs --- app.js | 1 + 1 file changed, 1 insertion(+) 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; }, -- cgit v1.2.3