Expose user account lock status#270
Open
CR29-22-2805 wants to merge 1 commit into
Open
Conversation
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.
💸 TL;DR
This exposes account-lock status on Devvit
Userobjects so moderation apps can distinguish accounts locked by Reddit as a security precaution from active, operational accounts when Reddit’s user payload includes that state. For Bot Bouncer, this would let moderators automatically review lists of security-locked accounts instead of manually checking each profile on sh.reddit. It would also support later reclassification when an account that was previously locked by Reddit is reclaimed and becomes operational again.📜 Details
Design Doc: N/A
Jira: N/A
This adds
accountStatusandisAccountLockedto DevvitUsermodels and mock user data. The new status handling preserves existing suspended-account behavior while allowing accounts locked by Reddit for security/account-access reasons to be represented separately from active accounts. This is intended to support moderation workflows where account availability/state needs to be reviewed at scale rather than inferred manually from profile pages.This is an API-surface change to the Devvit
Usermodel.🧪 Testing Steps / Validation
Testing:
git diff --check.corepack enablefailed on Windows with an EPERM error while writing Yarn shims underC:\Program Files\nodejs, and direct Yarn execution later failed becausedevvit@0.13.6-devwas unavailable from the public npm registry. I therefore could not run the workspace test suites locally.✅ Checks