Expose a user flair's custom text

Open
#235 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
api

Research direction

Start by locating the UserFlairV2 definition and the entry point that exposes flair data. Trace how editable flair values are represented, then determine where the user's custom text should be exposed for moderation use. Done means the custom text is available alongside the existing flair fields.

Written by the indexing model from the issue text.

Description

This is a UserFlairV2:

{
  userId: 't2_hjp31',
  subredditId: 't5_g3e97a',
  text: 'Custom',
  cssClass: '',
  templateId: 'a24fe6b2-dc46-11f0-a54e-e2209b7e3739',
  textColor: '',
  backgroundColor: '',
  enabled: true
}

This is editable, so a user can choose to display whatever they want. Unfortunately, what they use is not text. It's not exposed. Exposing what they have written would be a nice addition, especially for moderation purposes!

Dominant language
TypeScript
Stars
210
Forks
88
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reddit/devvit

All issues in reddit/devvit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.