From 6942f47747f8655cf0702422f457f0476ab29c41 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Sat, 4 Mar 2023 19:30:05 -0800 Subject: pds: updates for Thread schema hacks (for CLI) --- adenosine-pds/src/db_bsky.rs | 20 ++++++++++---------- adenosine-pds/templates/thread.html | 19 ++++++++++++++++--- 2 files changed, 26 insertions(+), 13 deletions(-) (limited to 'adenosine-pds') diff --git a/adenosine-pds/src/db_bsky.rs b/adenosine-pds/src/db_bsky.rs index 5e968af..c51979e 100644 --- a/adenosine-pds/src/db_bsky.rs +++ b/adenosine-pds/src/db_bsky.rs @@ -218,7 +218,6 @@ fn feed_row_to_item(srv: &mut AtpService, row: FeedRow) -> ResultPost not found! + {% endif %}
---
{% endif %} -{% call macro::feed_item(post.post) %} +{% if post.post.is_some() %} + {% call macro::feed_item(post.post.as_ref().unwrap()) %} +{% else %} +

Post not found! +{% endif %} {% if post.replies.is_some() && post.replies.as_ref().unwrap().len() > 0 %}

--- replies ---
{% for item in post.replies.as_ref().unwrap() %} - {% call macro::feed_item(item.post) %} + {% if item.post.is_some() %} + {% call macro::feed_item(item.post.as_ref().unwrap()) %} + {% else %} +

Post not found! + {% endif %} {% endfor %} {% endif %} -- cgit v1.2.3