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:
teddit 2021-05-21 18:45:19 +02:00
commit c033a6410a

View File

@ -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