{% macro feed_item(item) %}
{# TODO: handle both thread items and feed items {% if item.repostedBy.is_some() %} {% if item.author.displayName.is_some() %}{{ item.author.displayName.as_ref().unwrap() }}{% endif %} @{{ item.author.handle }} {% endif %} #}
{% if item.record.createdAt.is_some() %} {{ item.record.createdAt.as_ref().unwrap() }} {% else %} {{ item.indexedAt }} {% endif %}
{% if item.author.displayName.is_some() %} {{ item.author.displayName.as_ref().unwrap() }} {% endif %} @{{ item.author.handle }}
{{ item.record.text }}
[{{ item.likeCount }} like / {{ item.repostCount }} repost / {{ item.replyCount }} reply] [inspect] {% if item.record.reply.is_some() %}
reply to: {{ item.record.reply.as_ref().unwrap().parent.uri }} {% endif %}
{% endmacro %}