From b1b437ce1f83ebfb8808964846c964cac5e907c2 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Mon, 20 Feb 2023 02:02:59 -0800 Subject: app_bsky: expand post (and post view) types --- adenosine-pds/templates/macro.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'adenosine-pds/templates/macro.html') diff --git a/adenosine-pds/templates/macro.html b/adenosine-pds/templates/macro.html index 7c61230..795400b 100644 --- a/adenosine-pds/templates/macro.html +++ b/adenosine-pds/templates/macro.html @@ -11,8 +11,8 @@
- {% if item.record["createdAt"].as_str().is_some() %} - {{ item.record["createdAt"].as_str().unwrap() }} + {% if item.record.createdAt.is_some() %} + {{ item.record.createdAt.as_ref().unwrap() }} {% else %} {{ item.indexedAt }} {% endif %} @@ -25,16 +25,16 @@ {% endif %} @{{ item.author.handle }}
-{{ item.record["text"].as_str().unwrap() }} +{{ item.record.text }}
[{{ item.upvoteCount }} upvote / {{ item.repostCount }} repost / {{ item.replyCount }} reply] [inspect] -{% if item.record.get("reply").is_some() %} +{% if item.record.reply.is_some() %}
-reply to: {{ item.record["reply"]["uri"] }} +reply to: {{ item.record.reply.as_ref().unwrap().parent.uri }} {% endif %} -- cgit v1.2.3