I’m importing a series of emails into a new discourse instance. Importing the messages is going well, however using the
discourse_api gem I’m unable to set the date on a new post.
For example the following code imports a new post, using create_topic:
result = client.create_topic( :category => "foo", :title => "This is my descriptive title", :raw => "This is my long/interesting post..." )
As expected this creates the post with the post-date set to “now”. I tried adding
posted_at fields which I’ve seen referred to in various places (but not the API gem), but these were ignored.
Is there any way to mangle the date of the new post, short of editing the database? (Bear in mind I’m importing thousand of new entries from mailman archives and a couple of other data-sources (including wordpress).