Problem
Stickied posts in the feed and stickied comments in threads dominate the view. AutoModerator comments already have a "collapse by default" preference (src/mixins/comment.pug:51) — mirror that for stickies.
Scope
- Sticky posts: in card view, set
details[open] to false for p.stickied === true (currently always open for media/link posts in card view per src/mixins/post.pug:57). In compact view, the existing toggle behavior already collapses by default — no change needed.
- Sticky comments: in
src/mixins/comment.pug:51, the open= expression currently considers only AutoMod + the collapseAutoMod pref. Extend with && !(data.stickied && prefs.collapseStickies).
Tasks
Problem
Stickied posts in the feed and stickied comments in threads dominate the view. AutoModerator comments already have a "collapse by default" preference (
src/mixins/comment.pug:51) — mirror that for stickies.Scope
details[open]to false forp.stickied === true(currently always open for media/link posts in card view persrc/mixins/post.pug:57). In compact view, the existing toggle behavior already collapses by default — no change needed.src/mixins/comment.pug:51, theopen=expression currently considers only AutoMod + thecollapseAutoModpref. Extend with&& !(data.stickied && prefs.collapseStickies).Tasks
pref_collapseStickiescolumn to users table (mirrorpref_collapseAutoMod)src/db.jsprefToColumnmap insrc/routes/index.jsget_user_prefshelper updatedsrc/views/dashboard.pugalongside the existing AutoMod togglesrc/mixins/post.pugsrc/mixins/comment.pug