Fix NSFW property on User model and add missing properties#256
Merged
stephenoid merged 1 commit intoreddit:mainfrom Apr 28, 2026
Merged
Fix NSFW property on User model and add missing properties#256stephenoid merged 1 commit intoreddit:mainfrom
stephenoid merged 1 commit intoreddit:mainfrom
Conversation
stephenoid
approved these changes
Apr 28, 2026
3 tasks
stephenoid
added a commit
that referenced
this pull request
Apr 29, 2026
…257) <!-- If this pull request closes an issue, please mention the issue number below --> Closes #193 ## 💸 TL;DR My last PR (#256) only made a change on the reddit package for Devvit Web. Sorry about this - this closes the same gaps on the classic reddit-api package. This pull request addresses two issues on the `User` model: * NSFW property is returning the wrong value - it currently returns the "I am over 18 and want to see NSFW content" property, rather than the "I am NSFW" property. * Two underlying properties available on the Data API (isMod and isGold) are not available on the User model. I am now exposing these properly, using the current "Reddit Premium" terminology instead of Reddit Gold. ## 🧪 Testing Steps / Validation I have tested these locally by modifying files in the node_modules folder. However it is not possible for me to run full CI on this. For some time I have had my own User model that transforms these values in the same way. ## ✅ Checks <!-- Make sure your pr passes the CI checks and do check the following fields as needed - --> - [ ] CI tests (if present) are passing - [X] Adheres to code style for repo - [X] Contributor License Agreement (CLA) completed if not a Reddit employee Co-authored-by: stephenoid <stephenoid@oidoid.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #193
💸 TL;DR
This pull request addresses two issues on the
Usermodel:🧪 Testing Steps / Validation
I have tested these locally by modifying files in the node_modules folder. However it is not possible for me to run full CI on this.
For some time I have had my own User model that transforms these values in the same way.
✅ Checks