Instagram oneboxing

@Roman_Rizzi can you add investigating this to your list (once you free us from other work)


Just pushed a fix:

Will bump onebox version in discourse soon.


The fix is now live on meta:


Hi Sam, is Instagram oneboxing broken? Test:

1 Like

You wrote

But let’s see


@Roman_Rizzi Looks like updated regex for username broke the regular Instagram links. Can you fix?


I relaxed the regexp a little bit and added an additional test to cover both cases.


Following up here as I’ve noticed broken Instagram oneboxes on our site…

Is this supposed to make it so that the Instagram onebox preview images no longer break? Because if so, it seems that’s not currently working for us. It may be specific to video posts (not sure as pretty much all examples on our site are videos).

See e.g. this post on our site (from just a few weeks ago): Forearm rotation clip on this blog? - Playing Technique - The Cracking the Code Forum

Same with several others. Rebuild does fix, e.g. displays like so after rebuilding the post: Black star lick HELP ME - Playing Technique - The Cracking the Code Forum

I see some video embeds above in this very topic do still work, so not sure if there’s some other variable with this only happening for certain accounts.

If this is an intentional thing from Instagram without an easy workaround, this is a good suggestion:

Basically — a daily / weekly job (not sure how long exactly the Instagram embeds expire) to run Rebake all posts matching a pattern matching I think would do the trick.

It should only be much older posts, not a recurring thing. So a one time global rebake should fix all.

Right that’s what I thought at first, and I did a rebake on all our posts w/ Instagram links like a month or two back which I thought would fix this permanently.

But even recent posts (examples: one, two, three) now have the broken preview images again.

Hmm maybe @techAPJ could have a look.

1 Like

Hey Brendan, can you verify that the setting download remote images to local is enabled on your site? Also can you make sure that download remote images threshold is satisfied on your server, i.e. your server has required percentage of minimum disk space?


Server has space, but looks like we did not have that setting enabled, I will turn it on now and run the rebake again. Thanks for the help here!