devvit icon indicating copy to clipboard operation
devvit copied to clipboard

getCommentsAndPostsByUser returns nothing for a particular user

Open devvit-help-bot[bot] opened this issue 10 months ago • 0 comments

Details

u/super_gisty has 7 posts in their history, but both getCommentsAndPostsByUser and getPostsByUser return empty arrays. Warning, profile is NSFW.

Additional info

Discord message: _I have a weird issue with retrieving the history for one user. This user has 7 posts in their history, but calling getCommentsAndPostsForUser returns an empty array:

  const userContent = await context.reddit.getCommentsAndPostsByUser({
      username: "super_gisty",
      limit: 100,
      sort: "new",
  }).all();

  console.log(userContent.length);

(Warning: Profile is NSFW)

getPostsByUser likewise returns nothing.

The user is not blocking the app account (one of the posts at least is on a sub the app is moderating) and I've reproduced from my sandbox app too._

Message author: big.wheel

Discord link: https://discord.com/channels/1050224141732687912/1050227353311248404/1325739551485857805

devvit-help-bot[bot] avatar Feb 07 '25 02:02 devvit-help-bot[bot]