Skip to content

Fix X author fallback on status URLs#161

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

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
Copy Markdown
Contributor

@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

@kepano
Copy link
Copy Markdown
Owner

kepano commented Mar 27, 2026

Fixed via f604140

@kepano kepano closed this Mar 27, 2026
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.

2 participants