r/Devvit • • 1d 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 Upvotes

9 comments sorted by

2

u/SampleOfNone Duck Helper 1d 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/Intrepid-Dig72 1d ago

Previous post about NSFW content being disabled ~5 months ago. I'm not familiar with Reddit, otherwise I would tag you in the post

1

u/SampleOfNone Duck Helper 1d ago

As far as I know, what Beach said is the current situation, if your app needs to be able to see nsfw you need to send a modmail to r/devvit

1

u/Intrepid-Dig72 1d ago

Okay, thanks for the information.

1

u/Beach-Brews Duck Helper 1d 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.

1

u/Intrepid-Dig72 1d ago

Thanks. I did send one 10 days ago, any idea how long I should expect a response to take?

1

u/Beach-Brews Duck Helper 1d ago

It's not unheard of to wait 2 weeks, especially with weekends and holidays.

2

u/Intrepid-Dig72 1d ago

Makes sense, thanks!

1

u/Beach-Brews Duck Helper 1d ago

No problem!