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

Bluesky: truncate string values to length limits #717

Closed
Tracked by #381
snarfed opened this issue Apr 26, 2024 · 1 comment
Closed
Tracked by #381

Bluesky: truncate string values to length limits #717

snarfed opened this issue Apr 26, 2024 · 1 comment

Comments

@snarfed
Copy link
Owner

snarfed commented Apr 26, 2024

Lexicons can include length limits for some fields, eg 300 graphemes for app.bsky.feed.post text. The relay (or AppView?) checks length limits in record validation and drops records if any fields are over their limit. We need to handle this in bluesky.to/from_as1.

Ideally we'd bundle the lexicons themselves and look up and use per-field length limits automatically. Not sure I want to go that far though. Alternatively we could do this in lexrpc, with an option to truncate values that are too long.

@snarfed
Copy link
Owner Author

snarfed commented Apr 26, 2024

granary already has lexrpc as a dependency! So I did this in both places.

@snarfed snarfed closed this as completed Apr 26, 2024
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

No branches or pull requests

1 participant