$ type = discover_post_type(entry)
$if type == "note":
$:mkdn(entry["content"][0])
$elif type == "bookmark":
$ bookmark = entry["bookmark-of"][0]
$var title: Bookmarked $bookmark
Bookmarked $bookmark
$elif type == "like":
$ like = entry["like-of"][0]
$var title: Liked $like
Liked
$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"]
$ a = entry["author"]
$a["name"][0]
$entry["visibility"][0]