aboutsummaryrefslogtreecommitdiff
path: root/src/mixins/post.pug
diff options
context:
space:
mode:
authorAkshay <[email protected]>2025-01-23 10:17:04 +0000
committerAkshay <[email protected]>2025-01-23 10:17:04 +0000
commit342b9f1c4241a862f05caeacfdf5f2157b4b1620 (patch)
tree6e930da1ec967437b93061f94e87606ae14fd8fa /src/mixins/post.pug
parent71280f0271b1aea4b1b47bb2619a7766a7747338 (diff)
minor fixes
- avoid extra sort & view options on /comments - avoid extra sort & view options on /r/sub in post card
Diffstat (limited to 'src/mixins/post.pug')
-rw-r--r--src/mixins/post.pug4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mixins/post.pug b/src/mixins/post.pug
index 9021f93..f4b6c4f 100644
--- a/src/mixins/post.pug
+++ b/src/mixins/post.pug
@@ -25,9 +25,9 @@ mixin post(p, currentUrl)
25 | &nbsp;·&nbsp; 25 | &nbsp;·&nbsp;
26 | #{timeDifference(Date.now(), p.created * 1000)} 26 | #{timeDifference(Date.now(), p.created * 1000)}
27 | &nbsp;·&nbsp; 27 | &nbsp;·&nbsp;
28 a(href=`/r/${p.subreddit}?sort=${sortQuery}&view=${viewQuery}`) r/#{p.subreddit} 28 a(href=`/r/${p.subreddit}`) r/#{p.subreddit}
29 | &nbsp;·&nbsp; 29 | &nbsp;·&nbsp;
30 a(href=`/comments/${p.id}?from=${from}&sort=${sortQuery}&view=${viewQuery}`) #{fmtnum (p.num_comments)} ↩ 30 a(href=`/comments/${p.id}?from=${from}`) #{fmtnum (p.num_comments)} ↩
31 if (query.view == "card" && !isPostMedia(p) && p.selftext_html) 31 if (query.view == "card" && !isPostMedia(p) && p.selftext_html)
32 div.self-text-overflow.card 32 div.self-text-overflow.card
33 if p.spoiler || p.over_18 33 if p.spoiler || p.over_18