FIX: title when YouTube is pasted as the title to composer (PR #12565)

When the YouTube link is passed to the composer, it should extract the title.

GitHub

Nice choice.

Shouldn’t it be returning an <aside class="onebox">, but it’s returning an <img>? Looks odd to me.

@nlalonde I checked onebox gem and looks like many engines are returning just image:

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

@nlalonde The preview_html doesn’t need to be fancy, it just needs to indicate that we’re fetching the right thing.