Flickr embeds / oneboxes not working correctly

Flickr embeds initially interactive - then - turn into a single flat image on reload.

Steps to Reproduce

  1. Start composing new post
  2. Paste a Flickr album link e.g. https://www.flickr.com/photos/blue_thunderke/sets/72157623871623158/
  3. Note that Flickr embed is interactive in preview, including Flickr logo and navigation arrows.
  4. Select “Create Topic”.
  5. See post in view, note Flickr embed is still interactive.
  6. Refresh page

Expected Result

Flickr embed to continue to be interactive as it was in the preview.

Actual Result

Flat image with a click counter after it (if clicked by others)

Example

2 Likes

This is because last year Flickr changed it’s oEmbed API to use “fancy” embed which requires inserting script tags in our DOM, which we don’t support.

This is exactly why we don’t support official Imgur oEmbed:

https://community.imgur.com/t/imgur-album-no-longer-embedded-in-post/11711/11?u=ajalan

I updated onebox gem to use OpenGraph instead for Flickr links:

https://github.com/discourse/onebox/commit/86c3b1bf8ef28aff283f860e56f85cf2aa91d3eb

4 Likes