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)

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

إعجاب واحد (1)

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)