{% 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"].as_str().is_some() %} {{ item.record["createdAt"].as_str().unwrap() }} {% else %} {{ item.indexedAt }} {% endif %}
{% if item.author.displayName.is_some() %} {{ item.author.displayName.as_ref().unwrap() }} {% endif %} @{{ item.author.handle }}
{{ item.record["text"].as_str().unwrap() }}
[{{ item.upvoteCount }} upvote / {{ item.repostCount }} repost / {{ item.replyCount }} reply] [inspect] {% if item.record.get("reply").is_some() %}
reply to: {{ item.record["reply"]["uri"] }} {% endif %}
{% endmacro %}