get_toot = function(ml) local url = url_from_ml(ml) local code, response, response_headers = https.request(url) local result = json.decode(response) code, response, response_headers = https.request(url..'/context') local rels = json.decode(response) result.host = ml.host result.user = ml.user result.id = ml.id result.ancestors = rels.ancestors result.descendants = rels.descendants return result end