Skip to content

Refresh media comment action payload#288

Merged
subzeroid merged 1 commit into
mainfrom
fix/comment-action-context-aiograpi
May 19, 2026
Merged

Refresh media comment action payload#288
subzeroid merged 1 commit into
mainfrom
fix/comment-action-context-aiograpi

Conversation

@subzeroid

@subzeroid subzeroid commented May 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • mirror the current media_comment() write payload from instagrapi, including feed action context fields
  • fix pooled live account URL construction so an existing count query param is overridden instead of duplicated
  • add regression coverage for async comment payload and live account URL construction
  • add a manual comment live workflow target and update the live comment test to upload/read back/cleanup its own media fixture
  • document that comment creation remains a write action subject to Instagram spam/trust checks

Mirrors subzeroid/instagrapi#2538.

Tests

  • .venv/bin/python -m pytest tests/regression/test_comments.py::CommentRepliesRegressionTestCase::test_media_comment_posts_current_action_context tests/regression/test_live_smoke.py::LiveSmokeRegressionTestCase::test_fetch_accounts_overrides_existing_default_count -q
  • .venv/bin/python -m pytest tests/regression/test_comments.py tests/regression/test_live_smoke.py -q
  • .venv/bin/python -m ruff check aiograpi tests
  • .venv/bin/python -m ruff format --check aiograpi tests
  • .venv/bin/python -m pytest -sv tests/legacy.py::ExtractorsRegressionTestCase tests/legacy.py::ImageUtilSafeRemoteFetchTestCase tests/legacy.py::DirectExtractorRegressionTestCase tests/legacy.py::PublicRegressionTestCase tests/legacy.py::PolarisProfileNormalizationTestCase tests/legacy.py::CaptchaHandlerMixinRegressionTestCase tests/legacy.py::NoteMixinRegressionTestCase tests/legacy.py::LocationMixinRegressionTestCase tests/legacy.py::ChallengeRegressionTestCase tests/legacy.py::AuthAndStoryRegressionTestCase tests/legacy.py::ClientTestCase tests/legacy.py::DownloadRegressionTestCase tests/legacy.py::DirectMixinRegressionTestCase tests/legacy.py::UserMixinRegressionTestCase tests/legacy.py::TimelineRegressionTestCase tests/legacy.py::StoryConfigureRegressionTestCase tests/legacy.py::UploadRegressionTestCase tests/legacy.py::SignUpTestCase tests/legacy.py::NotificationMixinRegressionTestCase tests/legacy.py::ChapiPortedRegressionTestCase tests/regression
  • .venv/bin/python -m mkdocs build --strict
  • ./scripts/check-mypy-baseline.sh
  • .venv/bin/python -m build

Live verification

@subzeroid subzeroid force-pushed the fix/comment-action-context-aiograpi branch from e82a2e3 to 9142344 Compare May 19, 2026 21:10
@subzeroid subzeroid merged commit 1bf69b2 into main May 19, 2026
22 checks passed
@subzeroid subzeroid deleted the fix/comment-action-context-aiograpi branch May 19, 2026 21:12
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.

1 participant