Skip to content

Fix X author fallback on status URLs#161

Open
ylw5 wants to merge 1 commit intokepano:mainfrom
ylw5:codex/fix-x-status-author-fallback
Open

Fix X author fallback on status URLs#161
ylw5 wants to merge 1 commit intokepano:mainfrom
ylw5:codex/fix-x-status-author-fallback

Conversation

@ylw5
Copy link

@ylw5 ylw5 commented Mar 12, 2026

Summary

Fix author extraction for X article pages rendered on /status/:id URLs.

Previously, XArticleExtractor#getAuthorFromUrl() only matched /article/:id, so browser-based parsing could fall back to "Unknown" when:

  • the page rendered article content,
  • the inline author block was unavailable, and
  • og:title used localized text instead of the English "... on X: ..." pattern.

This change expands the URL fallback to support both /status/:id and /article/:id.

Tests

  • added a fixture for an X article rendered on a localized /status/:id URL without an inline author block
  • ran npm test

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