mastodon icon indicating copy to clipboard operation
mastodon copied to clipboard

Preview card for YouTube short urls links to wrong page

Open guerda opened this issue 1 year ago • 5 comments

Steps to reproduce the problem

  1. Post a YouTube short URL like https://youtu.be/C_b6bptI844
  2. Open the link in the post, video shows fine
  3. Open the link via the preview card, YouTube loads the page of an "undefined" YouTube channel or showing a blank page: https://www.youtube.com/undefined

Happens on Mastodon 4.2.10

Screenshot_20240811-102045

Expected behaviour

the preview card should keep the original name the same.

Actual behaviour

a wrong video page is shown

Detailed description

No response

Mastodon instance

ruhr.social

Mastodon version

4.2.10

Browser name and version

chrome Android Version 127.0.6533.103 and Firefox Android 129.0b9 (Build #2016034799),

Operating system

Android 14

Technical details

I tested it with short urls for YouTube shorts and for regular videos, it happens with both of them

guerda avatar Aug 11 '24 08:08 guerda

Hi! I have the same issue with one of my Mastodon instances. Didn't have the time to further dig into this issue, but when I have, I'll contribute.

ThomasLeister avatar Aug 12 '24 17:08 ThomasLeister

Great. Let me know how can I assist.

guerda avatar Aug 12 '24 18:08 guerda

Likely a duplicate of #31308, youtube changed something and it broke link unfurling

ThisIsMissEm avatar Aug 15 '24 16:08 ThisIsMissEm

Thanks Emily! It certainly looks that way. Hope you can get in contact with one of them soon

guerda avatar Aug 15 '24 16:08 guerda

Same issue here, YouTube card not working and showing as https://www.youtube.com/undefined, even when using the full video url and not the sharing short one. Running Mastodon 4.2.7

tomakun avatar Aug 28 '24 03:08 tomakun