$def with (entry)
$ type = discover_post_type(entry) $if type == "note":
$:mkdn(entry["content"][0])
$elif type == "like": $ like = entry["like-of"][0] $var title: Liked $like["name"]

Liked $like["name"]

$elif type == "bookmark": $ bookmark = entry["bookmark-of"][0] $var title: Bookmarked $bookmark["name"]

Bookmarked $bookmark["name"]

$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"]

$elif type == "rsvp": $ event = entry["in-reply-to"][0] $var title: RSVP'd $entry["rsvp"] to $event["name"]

RSVP'd $entry["rsvp"] $event["name"]

$ a = entry["author"]

$a["name"][0]