$def with (entry) $# , mentions) $ p = entry["published"][0] $ breadcrumbs = (p.year, p.year, p.format("MM"), p.format("MMM"), $ p.format("DD"), p.format("D")) $var breadcrumbs = breadcrumbs $var classes = "h-entry" $ type = discover_post_type(entry) $if type == "note":
$weight["num"] $weight["unit"]
$elif type == "bookmark": $ bookmark = entry["bookmark-of"][0] $var title: Bookmarked $bookmarkBookmarked $bookmark
$elif type == "like": $ like = entry["like-of"][0] $var title: Liked $likeLiked $like
$elif type == "rsvp": $ event = entry["in-reply-to"][0] $var title: RSVP'd $entry["rsvp"] to $event["name"]RSVP'd $entry["rsvp"]
$event["name"]
$value$# XXX $ a = entry["author"] $# XXX $def aside():
$entry["visibility"][0]
$if tx.user.session: reply $else: reply $var aside = aside $# $# $elif type == "identification": $# $ identification = entry["identification-of"][0] $# $var title: Identified $identification["name"] $#Identified $identification["name"]
$# $elif type == "follow": $# $ follow = entry["follow-of"][0] $# $var title: Followed $follow["name"] $#Followed $follow["name"]
$if tx.user.is_owner: