Mini (Inline) Onebox Support RFC

I wonder title is a better default than og:title?

Cause for example:

https://github.com/discourse/discourse/blob/master/README.md

Becomes:

discourse/discourse

But could be:

discourse/README.md at master · discourse/discourse

Even NYTimes ships with pretty crappy og:title when consumed as a pure title: eg: Technology - The New York Times has the og:title technology, which really sucks unless coupled with an NY times logo.

My call would be to prefer title for now, cause it seems more correct on more sites.

Additionally, I think we should add a site setting for “enable mini onebox on all sites” that way we can properly test this here.

Longer term maybe we should look at adding a favicon, or maybe allowing the onebox gem to handle custom titles and so on.

2 个赞