fix: Bluesky link card repeats the post caption as the embed description#1096
Open
Alexia-Soare wants to merge 1 commit into
Open
fix: Bluesky link card repeats the post caption as the embed description#1096Alexia-Soare wants to merge 1 commit into
Alexia-Soare wants to merge 1 commit into
Conversation
Contributor
Leave the external embed description empty instead of copying the post content already sent as the record text. Applies to both link posts and image posts that carry a URL. Fixes Codeinwp/tweet-old-post-pro#676 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
48bd045 to
47ddc01
Compare
Soare-Robert-Daniel
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Codeinwp/tweet-old-post-pro#676
Changes
class-rop-bluesky-api.php— the external embed (app.bsky.embed.external) description is now empty instead of duplicating$post['content'], which is already sent as the post text. Bluesky renders the card as title + domain, like any page without an OG description. Covers both call sites: link posts and image posts with a URL. Thedescriptionkey stays present (empty string) since the AT Protocol lexicon requires it.Tests
New
bluesky-cardPHPUnit suite captures the outboundcreateRecordrequest (pre_http_request, no Bluesky account needed): fails on the old code, passes with the fix.