From 64c9d94476e29724243c6a6488ba4ce41ce24114 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 10 Nov 2022 18:38:05 -0800 Subject: pds: basic/partial post thread implementation --- adenosine-pds/templates/macro.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'adenosine-pds/templates/macro.html') diff --git a/adenosine-pds/templates/macro.html b/adenosine-pds/templates/macro.html index 1d38482..96fdfe3 100644 --- a/adenosine-pds/templates/macro.html +++ b/adenosine-pds/templates/macro.html @@ -2,10 +2,12 @@ {% 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 %} +#}
@@ -27,6 +29,7 @@
[
{{ item.likeCount }} like / {{ item.repostCount }} repost / {{ item.replyCount }} reply] + [inspect] {% if item.record.get("reply").is_some() %} -- cgit v1.2.3