I’m trying to figure out how to get a comprehensive list of messages for a user from the API. I’ve run into two problems:
- There’s a bug in the Get Posts for a Channel endpoint that results in the
messagefield of deleted posts being returned as emptystring (yes, withinclude_deleted=true). I’ve opened a bug report for that. But, I’ve noticed these bugs hang around for a long time, so I should probably find another approach in the mean time. - The Search for Team Posts endpoint seems to be unable to find posts if the user being searched has been removed from the team. Also it doesn’t seem to be able to find deleted posts at all.
I’m trying to put together some tools to deal with all of the missing abuse-handling features at the Pro license level, and this particular problem is being a huge pain.
Anyone have suggestions for pulling up a comprehensive list of posts that a user has ever made, regardless of the current status of that user, the posts, or their team/channel join status… without just requesting the entire post history of the whole server?
At the moment it looks like I’m going to have to resort to direct DB queries, which I’m trying hard to avoid for the obvious code-maintenance reasons.