Data export should include discourse post id

AI-generated summary

In a feature request tagged with GDPR, mnalis argues that the Discourse data export should include the internal post ID (used in email headers like Message-ID for threading) alongside the existing URL. This would allow users to properly thread exported messages, especially when archiving personal data via “Export your data” or “Request archive.” Without the post ID, tools like mbox exporters (e.g., discussed here) cannot reconstruct conversation threads accurately. awesomerobot agrees and has submitted a pull request to implement this enhancement: GitHub PR #38129.

To be able to properly thread messages from personal data (i.e. “Export your data” / “Request archive”), the posts in created archive should include discourse post ID, not just URL.

I.e.

  • when you subscribe by e-mail for messages, they will containt both post id (i.e. in a header like Message-ID: discourse/post/1192559@community.openstreetmap.org (which is used for threading via `References:` and `In-Reply-To:` headers in such emails; as well as a topic/message URL (e.g. https://community.openstreetmap.org/t/deprecate-leisure-swing-used-6-times-worldwide/140407/20 )
  • however used data export contains only topic/messages URL, thus preventing implementing threading.

I would thus request that such “post id” (i.e. value that is being put in `Message-ID:` in e-mails coming from Discourse) is also included in user archive export (in addition to URL which is already there).

That is needed so exported user data can actually be reused properly by implementing proper threading of the exported messages (see e.g. See e.g. Export own messages to MBOX format? )

1 Like

Seems like a reasonable request! I’ve opened a pull request to get this added here:

https://github.com/discourse/discourse/pull/38129

4 Likes