r/Devvit • u/Intrepid-Dig72 • 5h ago
Duck Answered Bug with getPost command
The public API is not exposing NSFW posts by a user with getPosts. Is this deliberate?
I made a test post, and as admin of the test subreddit, I marked a users post as NSFW and nothing came up (and it shows up as soon as I unmark NSFW).
A moderator here, fsv, claimed this issue would be resolved ~5 months ago but it doesn't seem to be any different.
Code:
=== getPosts on User ===
node_modules/@devvit/reddit/models/User.d.ts:221: getPosts(options: Omit<GetPostsByUserOptions, 'username'>): Listing<Post>;
node_modules/@devvit/public-api/apis/reddit/models/User.d.ts:243: getPosts(options: Omit<GetPostsByUserOptions, 'username'>): Listing<Post>;
=== User.d.ts ===
node_modules/@devvit/reddit/models/User.d.ts
node_modules/@devvit/public-api/apis/reddit/models/User.d.ts
2
u/SampleOfNone Duck Helper 5h ago
We all love fsv, but they're not a mod on this sub 😉
Could you be a bit more specific about where fsv said something was fixed?
1
u/Beach-Brews Duck Helper 4h ago
I know they were working on adding a permission option or toggle on the developer settings page, but not sure where that left off. For now, if your app needs to see NSFW posts, you have to request it by sending a mod mail message to r/Devvit.