Enhance embeds of link messages (URL redirection)
When you send a link message to a channel, Discord will show you the embed of the link that we can know about the info of the website.

Fig 1. Chinese news about Amazon employees
But if you use the short link which shared from you SNS App or a redirect link, you may see this before:

Fig 2. Embed with nothing... I use the the sharing feature with my App.
Then I share the same page with other URL direction service: https://reurl.cc/main/en
I see the details:

Fig 3. Embed with title, content, thumbnail of the news about COVID-19 Vaccination in Taiwan.
At the end, I share the direct endpoint url of the website
Wow, I got full message:

Fig 4. Embed with metadata of a direct url
As a developer of this platform, I want to figure out that why there was nothing in embed when I shared the link with SNS App, and I found that our service is using HTTP 301 header to locate the page, which many SNS has implemented. Embeds of the link: https://liff.line.me/1454987169-1WAXAP3K/v2/article/VaM7xL?utm_source=copyshare, show good in Facebook, Instagram, Twitter, Slack, but not in Discord.
So here is my story: As a user, I would like to view the embed of the link messages which the endpoints are using HTTP 301 in headers, so that I can preview the links.
Links:
https://today.line.me/tw/v2/article/VaM7xL?utm_source=copyshare
https://reurl.cc/main/tw
https://liff.line.me/1454987169-1WAXAP3K/v2/article/VaM7xL?utm_source=copyshare
कृपया टिप्पणी करने के लिए साइन इन करें करें.
टिप्पणियां
0 टिप्पणियां