Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add author flair data to Post and Comment objects #106

Open
PitchforkAssistant opened this issue Oct 18, 2024 · 0 comments
Open

Add author flair data to Post and Comment objects #106

PitchforkAssistant opened this issue Oct 18, 2024 · 0 comments
Labels
enhancement New feature or request synced This issue has been added to our internal tracker

Comments

@PitchforkAssistant
Copy link

The .json endpoints for posts and comments in the data API contain:

  • author_flair_template_id
  • author_flair_css_class
  • author_flair_richtext
  • author_flair_text_color
  • author_flair_text
  • author_flair_type
  • author_flair_background_color

These are quite hard to access via Devvit. Some of them are exposed in the event data for some triggers, but that's not a reliable way to get them. The User.getUserFlairBySubreddit() method only exposes author_flair_text and author_flair_css_class.

I understand there are difficulties with adding more flair data to the User object, so in the interim adding it to the Post and Comment objects would make obtaining things like a user's flair template ID far more reliable.

@pl00h pl00h added enhancement New feature or request synced This issue has been added to our internal tracker labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request synced This issue has been added to our internal tracker
Development

No branches or pull requests

2 participants