This is based of 3e095cab83 Related: https://git.pleroma.social/pleroma/pleroma/issues/1191
3e095cab83