Links not oneboxed when Sidekiq isn't running

When creating a topic via the API I find that links aren’t oneboxed.

curl \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"title": "Sample title here", "raw": "https://twitter.com/SE23life/status/1115640590954377217", "category": 1}' \
  http://localhost:3000/posts.json?api_key=[key]&username=test

Cog Menu > Rebuild HTML doesn’t seem to have any effect

Editing the post on the forum and adding some additional text on another line causes the onebox to render

Aside from the oneboxing issue, I’d also like to replicate the “paste URL in title” behaviour via the API (in order to display the link below the topic title). Is this possible somehow?

Are you running sidekiq in your dev environment? Post won’t onebox if you don’t, and it has nothing to do with API usage.

4 Likes

Ah - good suggestion!

I started Sidekiq and the URL oneboxed. Thank you @Falco

:warning: Important note :warning:

In dev always use:

bin/unicorn

:arrow_double_up: this runs a sidekiq worker.

bin/unicorn -x

:arrow_double_up: this runs no sidekiq worker.

3 Likes