Skip to content

Fix Fleetbase blog Ghost feed lookup#215

Draft
roncodes wants to merge 1 commit into
mainfrom
feature/fix-ghost-blog-feed
Draft

Fix Fleetbase blog Ghost feed lookup#215
roncodes wants to merge 1 commit into
mainfrom
feature/fix-ghost-blog-feed

Conversation

@roncodes
Copy link
Copy Markdown
Member

Summary

  • switch the Fleetbase blog lookup from the old Webflow RSS URL to the public Ghost RSS feed
  • normalize Ghost post links to canonical fleetbase.io/blog URLs for the console widget
  • add a reusable FleetbaseBlog parser with coverage for RSS parsing, link rewriting, malformed feeds, and limits

Root cause

The console widget still called the core-api lookup endpoint, but that endpoint fetched https://www.fleetbase.io/post/rss.xml, which now returns 404 after the blog moved to Ghost. The widget then had no posts to render.

Validation

  • ./vendor/bin/pest tests/Unit/FleetbaseBlogTest.php --colors=always
  • ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --diff src/Http/Controllers/Internal/v1/LookupController.php src/Support/FleetbaseBlog.php tests/Unit/FleetbaseBlogTest.php
  • curl -I https://fleetbase.ghost.io/rss/

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