I’ve updated the bot and added the possibility of translating hardcoded links (like this one: https://lemmy.world/post/2355178 or this one: https://lemmy.world/comment/1863672) to posts/comments with links from your instance when you mention him. I’ll show an example in comments.
It is actually trivial. Here’s a walk-through with one solution for how to do it: https://lm.williampuckering.com/comment/723311
Yeah, that link requires authentication. Anyway, I’ve just implemented it in the bot, I know how hard it is.
Ah sorry, just remembered I put my entire instance behind authentication except for the API endpoints required for federation. The comment I was linking to is in this thread. Just describes how all the info you need to properly transform the links is right there in the database records of the entities you want to transform, so this functionality can easily be added without much work.