From d863b637c802afd1a4e8d0fc3577e47cab18a8dd Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Mon, 15 Jan 2024 18:48:41 +1300 Subject: [PATCH] when sorting by active, use last_active for post date instead of posted_at --- app/templates/post/_post_teaser.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/post/_post_teaser.html b/app/templates/post/_post_teaser.html index 041f696c..df4ebde6 100644 --- a/app/templates/post/_post_teaser.html +++ b/app/templates/post/_post_teaser.html @@ -44,7 +44,7 @@ {% endif %} {% if show_post_community %}c/{{ post.community.name }}{% endif %} - by {{ render_username(post.author) }} {{ moment(post.posted_at).fromNow() }} + by {{ render_username(post.author) }} {{ moment(post.last_active if sort == 'active' else post.posted_at).fromNow() }}