ApiV2-GraphQL-Docs icon indicating copy to clipboard operation
ApiV2-GraphQL-Docs copied to clipboard

Conditionally exclude og:site_name to avoid empty discord embeds

Open ben-hig opened this issue 4 years ago • 0 comments

There are some pages on Anilist that result in empty embeds in Discord when they are linked, because the og:site_name is always included even when there is no more info from meta tags to include in the embed. An example is thread comments:

image

It would be nice if the og:site_name was conditionally included based on there being at least an og:title or og:description as well, otherwise the embed is just unnecessary

ben-hig avatar Aug 26 '21 16:08 ben-hig