{% macro composer(action, label, draft, error, submission=None, scope=None, revision=None, current=None) %}
{{ csrf_field() }} {% if submission %}{% endif %} {% if scope %}{% endif %} {% if revision %}{% endif %} {% if error %}{% endif %} {% if current %}

Current post: {{ current }}

{% endif %}
280 characters max
{% endmacro %} {% macro card(post, scope="thread", query="", handle="", linked=False) %}
{% if post.kind == 'repost' %}

@{{ post.shared_by }} reposted

{% endif %} {% if post.deleted %}

This post was removed.

{% else %}
@{{ post.username }}
{% if post.edited_at %} · Edited{% endif %}

{{ post.body }}

{% if not linked %}
Reply{% if post.replies %} · {{ post.replies }}{% endif %} {% for reaction, selected, count in [('like', post.liked, post.likes), ('repost', post.reposted, post.reposts)] %} {% if reaction == 'like' or not post.parent_id %}
{{ csrf_field() }} {% if post.cursor_id is defined and post.kind == 'repost' %}{% endif %}
{% endif %} {% endfor %} {% if g.user.id == post.author_id %} Edit Remove {% endif %}
{% endif %} {% endif %}
{% endmacro %} {% macro person_link(person) %}
  • @{{ person.username }} {% if person.following %}Following{% endif %}
  • {% endmacro %}