trypost/app/Services/Social/LinkCard
Paulo Castellano 8866e4ed46 fix(posts): cache the link card as an array, not the DTO
The link-card cache stored a LinkCardMetadata object, which does not round-trip through the Redis cache driver — a cache hit came back as __PHP_Incomplete_Class and 500'd the preview endpoint. Cache the plain array (toArray) and rebuild the DTO via a new fromArray(). Primitives round-trip cleanly through every driver. The cache test now asserts a primitive is stored and a hit reconstructs the DTO; the array cache driver used in tests hid the bug because it never serializes.
2026-07-17 16:34:04 -03:00
..
LinkCardFetcher.php fix(posts): cache the link card as an array, not the DTO 2026-07-17 16:34:04 -03:00
LinkCardMetadata.php fix(posts): cache the link card as an array, not the DTO 2026-07-17 16:34:04 -03:00
OpenGraphExtractor.php feat(bluesky): add link preview cards for posts 2026-07-17 14:32:40 -03:00