Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BSS-72] Resolve the issue related external embed wrong serialization and publish patch #19

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

shahmal1yev
Copy link
Owner

Addresses issue #18 where the link preview functionality wasn't working due to incorrect external embed serialization structure. This PR fixes the issue by properly structuring the external embed data according to AT Protocol specifications.

- Add Client dependency to External constructor for future use
- Restructure jsonSerialize output to match required format
- Wrap external data in 'external' property according to spec
- Update unit tests to reflect new structure
- Fix array formatting and indentation in tests

This commit addresses an issue where external embeds weren't being
structured according to AT Protocol specifications, which requires
external data to be nested under an 'external' property.
@shahmal1yev shahmal1yev merged commit 6aa4a86 into main Nov 11, 2024
5 checks passed
@shahmal1yev shahmal1yev deleted the bss-issue-18 branch November 11, 2024 23:40
@shahmal1yev shahmal1yev self-assigned this Nov 11, 2024
@shahmal1yev shahmal1yev added the bug Something isn't working label Nov 11, 2024
@shahmal1yev shahmal1yev changed the title Resolve the issue that external does not serialize by atproto/bsky specs (#18) [Hotfix] Resolve the issue that external does not serialize by atproto/bsky specs (#18) Nov 11, 2024
@shahmal1yev shahmal1yev changed the title [Hotfix] Resolve the issue that external does not serialize by atproto/bsky specs (#18) [BSS-72] Resolve the issue related external embed wrong serialization and publish patch Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant