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
Apply failure-status fix to --check-status; track new Facebook posts
Two more Codex findings, both real follow-ups to fixes made earlier
this round:
1. The FAILED-status fix (raising instead of silently reporting
"uploaded") only applied to publish_tiktok()'s immediate post-upload
check, not to check_publish_status() -- exactly the documented
`--check-status` recovery path a user is told to use INSTEAD of
retrying a real publish blind. Extracted the shared logic into
_raise_on_terminal_failure() so both call sites behave identically.
A caller using the safe, recommended tool to check an uncertain
result must not be told a failed post "succeeded" either.
2. auth/publish_facebook.py's article-scoped verification (this
round's earlier fix) narrowed false positives from the profile
bio/nav text, but could still match an OLDER post with similar
leading text -- a repeated caption, or a common generic opening.
Fixed by snapshotting the profile timeline's existing posts before
submitting anything (_find_profile_url extracted, plus a new
_article_fingerprints helper), then only counting a match in a post
that's genuinely new since that snapshot.
Added 2 tests for check_publish_status's FAILED/processing paths (no
direct unit test for the Facebook browser-flow change itself --
consistent with how every other browser-driven publisher here is
tested, via the shared dry-run safe-defaults suite, not by mocking
Playwright internals). No live TikTok/Facebook API calls, no account
access -- same as every other fix in this PR. 149 tests pass (was 147),
compileall clean, git diff --check clean.
0 commit comments