Skip to content

Expose Threads badge user fields#401

Merged
subzeroid merged 1 commit into
mainfrom
feature/threads-profile-link
Jun 30, 2026
Merged

Expose Threads badge user fields#401
subzeroid merged 1 commit into
mainfrom
feature/threads-profile-link

Conversation

@subzeroid

Copy link
Copy Markdown
Owner

Summary

  • expose Instagram profile Threads badge fields on User as show_text_post_app_badge and text_post_app_badge_label
  • preserve those fields from both private v1 and public GraphQL user payloads
  • add regression coverage for both extractor paths

Verification

  • RED: new tests failed before the model fields were added with AttributeError: User object has no attribute show_text_post_app_badge
  • PYTHONDONTWRITEBYTECODE=1 .venv/bin/pytest -q tests/regression/test_user.py
  • PYTHONDONTWRITEBYTECODE=1 .venv/bin/ruff check aiograpi/types.py tests/regression/test_user.py
  • PYTHONDONTWRITEBYTECODE=1 .venv/bin/pytest -q tests/regression
  • private live smoke verified user_info_by_username_v1 returns show_text_post_app_badge=True and text_post_app_badge_label for a public profile with a Threads badge

Closes #397

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] The Threads account information in the profile has been moved from the list of links to a new field.

1 participant