If you're wondering where I got the code, it;s from this pull request: https://git.gnu.io/gnu/gnu-social/merge_requests/119