mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-25 08:39:26 +01:00
Merge pull request 'Keep sort on user page' (#197) from StevenNMeza/teddit:keep_sort into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/197
This commit is contained in:
commit
c033a6410a
@ -144,7 +144,7 @@ html
|
||||
if data.before || data.after
|
||||
p view more:
|
||||
if data.before && !data.user_front
|
||||
a(href="/u/" + data.username + data.post_type + "?before=" + data.before + "") ‹ prev
|
||||
a(href="/u/" + data.username + data.post_type + (sortby === "new" ? "?" : "?sort=" + sortby + "&") + (!past ? "" : "t=" + past + "&") + "before=" + data.before + "") ‹ prev
|
||||
if data.after
|
||||
a(href="/u/" + data.username + data.post_type + "?after=" + data.after + "") next ›
|
||||
a(href="/u/" + data.username + data.post_type + (sortby === "new" ? "?" : "?sort=" + sortby + "&") + (!past ? "" : "t=" + past + "&") + "after=" + data.after + "") next ›
|
||||
include includes/footer.pug
|
||||
|
Loading…
Reference in New Issue
Block a user