when sorting by active, use last_active for post date instead of posted_at

This commit is contained in:
rimu 2024-01-15 18:48:41 +13:00
parent e045dc7f2d
commit d863b637c8

View file

@ -44,7 +44,7 @@
{% endif %}
</h3>
<span class="small">{% if show_post_community %}<strong><a href="/c/{{ post.community.link() }}">c/{{ post.community.name }}</a></strong>{% endif %}
by {{ render_username(post.author) }} {{ moment(post.posted_at).fromNow() }}</span>
by {{ render_username(post.author) }} {{ moment(post.last_active if sort == 'active' else post.posted_at).fromNow() }}</span>
</div>