diff options
author | Akshay <[email protected]> | 2025-01-23 10:17:04 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2025-01-23 10:17:04 +0000 |
commit | 342b9f1c4241a862f05caeacfdf5f2157b4b1620 (patch) | |
tree | 6e930da1ec967437b93061f94e87606ae14fd8fa /src/mixins/post.pug | |
parent | 71280f0271b1aea4b1b47bb2619a7766a7747338 (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.pug | 4 |
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 | | · | 25 | | · |
26 | | #{timeDifference(Date.now(), p.created * 1000)} | 26 | | #{timeDifference(Date.now(), p.created * 1000)} |
27 | | · | 27 | | · |
28 | a(href=`/r/${p.subreddit}?sort=${sortQuery}&view=${viewQuery}`) r/#{p.subreddit} | 28 | a(href=`/r/${p.subreddit}`) r/#{p.subreddit} |
29 | | · | 29 | | · |
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 |