Fix #11270
Fix #8078
* Encode custom emojis as resolveable objects in ActivityPub * Improve code style