This is a pretty straightforward addition, I’ve opened a PR for it here
edit: merged! this will be available with Discourse updates soon