Discourse Link previews through a proxy server?

Purely out of curiosity… How does previewing a link leak ip info?