···379379 handle = req_json.get("handle")
380380 if handle is None:
381381 raise web.HTTPBadRequest(text="missing or invalid handle")
382382- # TODO: actually validate it, and update the db!!!
382382+ # TODO: actually validate it
383383 # (I'm writing this half-baked version just so I can send firehose #identity events)
384384 with get_db(request).new_con() as con:
385385+ con.execute(
386386+ "UPDATE user SET handle = ? WHERE did = ?",
387387+ (handle, request["authed_did"]),
388388+ )
385389 # TODO: refactor to avoid duplicated logic between here and apply_writes
386390 firehose_seq = con.execute(
387391 "SELECT IFNULL(MAX(seq), 0) + 1 FROM firehose"