FEATURE: Include rejected queued posts in the user archive export (PR #10859)

Requested at https://meta.discourse.org/t/where-can-a-user-find-the-post-that-was-rejected-by-the-moderator/165671?u=riking

Field selection was hard to determine here, because there’s no guarantee about what’s in the json payload. I decided to include the entire thing, as it gets passed to the PostCreator with no field whitelisting.

Additionally, I spotted a stray IP address in the payload field on an older forum.


@eviltrout you wrote most of the new Reviewable code - is there anything that might generically end up in payload that needs to be kept secret & not exported?

This pull request has been mentioned on Discourse Meta. There might be relevant details there:


@riking it seems a bit dangerous to export everything in the JSON by default. I know some plugins like twohat for example are storing metadata in there about their classification.

I think we should only export certain things. We could start with the raw post and that would likely be sufficient.