$def with (posts, categories, people) $#
A firehose feed of all posts in the known IndieWeb from the last 72 hours.
$:content
$ details.pop("content-plain")Checked in to $checkin["name"].
$elif entry_type == "note": $ summary = details.pop("summary", None) # do something if diff from content $if content: $:content $else: $details.pop("name", "UNKNOWN NOTE CONTENT") $elif entry_type == "article":RSVP $details.pop("rsvp")[0]["url"]
for $details.pop("in-reply-to")[0]["url"]
Listened to $listened_url
$if summary := details.pop("summary", None):$:summary
$elif entry_type == "bookmark": $ bookmarked_url = details.pop("bookmark-of")[0]["url"] $ bookmarked_title = details.pop("name", details.pop("summary", bookmarked_url))Bookmarked $bookmarked_title
$elif entry_type == "repost": $for repost in details.pop("repost-of"): $ repost_url = repost.pop("url")Repost of $repost_url
$pformat(repost)
In reply to:
$else:$post_type post type
$for category in categories: $:category\ $if not loop.last: ,
$ author_source = None $if author := details.pop("author", None): $ author_source = author.get("url") $if not author_source: $ author_source = post["url"] $if author_source.startswith("mailto:"): $continue $ author_url = uri(author_source).host $if author_url not in people: $ author_url = author_url.removeprefix("www.") $if author_url not in people: $ author_url = f"www.{author_url}" $if author_url not in people: $continue $if details: $entry_type$pformat(details)