Add thread building support.

This commit is contained in:
Edward Betts 2025-11-15 17:50:19 +00:00
parent 7ca62bfbb3
commit e6260faaeb
7 changed files with 145 additions and 27 deletions

View file

@ -15,6 +15,23 @@
{% endif %}
<form method="post" class="compose-form">
{% if latest_status %}
<section class="latest-status">
<h3>Most recent Mastodon post</h3>
<input type="hidden" name="latest_status_id" value="{{ latest_status.id }}">
{% if latest_status.created_display %}
<p class="date">Posted {{ latest_status.created_display }}</p>
{% endif %}
<div class="status-content">{{ latest_status.content|safe }}</div>
<label class="reply-checkbox">
<input type="hidden" name="reply_to_latest" value="0">
<input type="checkbox" name="reply_to_latest" value="1" {% if reply_to_latest %}checked{% endif %} {% if not mastodon_ready %}disabled{% endif %}>
Reply to this post to continue the thread
</label>
</section>
{% elif latest_status_error %}
<div class="warning">{{ latest_status_error }}</div>
{% endif %}
<div class="asset-list">
{% for asset in assets %}
<article class="compose-asset" data-asset-id="{{ asset.id }}">