{% if can_like %}
{% set action = url_for('like.unlike_post' if already_liked else 'like.like_post', post_id=post.id) %}
{# swaps this widget through htmx. Every swap attribute is set here, because
the post menu sits inside the topic page's element that sets the swap
targets of its moderation actions. #}
{% endif %}