Fix Open Graph/oEmbed data to contain post image #332
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, I have been using misskey/foundkey for quite a while now and have an issue with the previews. Every time I share a link to a post which has an image attachment, I don't see the post image in the preview.
I propose the following fix:
Optionally:
Fix Open Graph/oEmbed data to contain post image.to Fix Open Graph/oEmbed data to contain post imageThis still leaves me with some open questions:
I think regarding making it configurable it is probably more complex than would be worth.
og:image
meta tags. I need to double check if Discord and Telegram support this properly.Edit: It seems like when there is multiple
og:image
's Telegram uses the last one and Discord uses the first one.So with the edited in comment, I'm not sure if it is a good idea to add multiple tags.
Also since you didnt answer 2.1 I'm inclined to also continue showing the profile picture if there are any sensitive files attached.
With commit
39fb7e5946
, the OpenGraph data should be improved.I have decided against using the users profile picture in any case as I think it does not really match the definition of the field:
I think only the user themself should be represented with their profile picture.
I have also fixed some other issues with our OpenGraph data such as proclaiming all files to be images and we now also provide some more metadata about the files such as MIME type and image alt texts (if provided).