You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
andauthor_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.
The text was updated successfully, but these errors were encountered: