Keep sort on user page

This commit is contained in:
StevenNMeza 2021-05-21 18:43:19 +02:00
parent 6a203f6192
commit e4c54beaf8

View File

@ -144,7 +144,7 @@ html
if data.before || data.after if data.before || data.after
p view more: p view more:
if data.before && !data.user_front 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 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 include includes/footer.pug