fiatjaf / njump

mirror of https://git.njump.me/njump
MIT License
106 stars 22 forks source link

njump preview formatting for Instagram DMs is broken #69

Closed alltheseas closed 1 week ago

alltheseas commented 1 week ago

image

https://njump.me/note1kzjl5essncqrgrfwp648dr6hv942uak7d2sa707wm7qytjhhgpjqmsj07s

dtonon commented 1 week ago

Fixed in a731bd27f508f83bb58ebcd5b7af340e4f4f252e.

image

Unfortunately, the solution is not perfect, due to the fact that Facebook and Instagram use the same bot to fetch the images, but they are somehow post-processed and visualized differently, and then cached (so used for both the platforms). So the previous rendering happens if the link is first shared via Instagram DM. If it is shared first on Facebook, the following sharing on IG will render this half-broken version:

image