Oneboxing doesn't work when creating a topic via the API?

I’m creating a topic via the API, with the last line being a link (to another Discourse forum) however it is not one boxing as it would if posting the topic manually.

Is this something that’s done in a background task or something that might beed looking into? (I haven’t been leaving the topics up for long since they are tests.)

1 Like

Is that link on its own line? Also, does your discourse generate a onebox if you paste the url on the composer directly?

1 Like

Yes and yes - is it working for you Faizaan?

Here’s the end of my raw constructer:

      text << "\n \n"
      text << "https://forum.com/t/#{topic.slug}/#{topic.id}"
1 Like