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

Difference in character count limit in app and via API when posting URLs #3244

Open
ulrischa opened this issue Mar 18, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@ulrischa
Copy link

Describe the bug
When I post a long URL the character count limit is different when I post via the API vs via the composer in the bluesky web-app.
In the composer I can use longer URLs. There seems a cut off in the length. The API seems to take the full url length minus the protocoll.

To Reproduce

Steps to reproduce the behavior:

  1. Take this post text and post it via the composer and via the api:
1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890#1234567890
https://www.example.com/1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890_1234567890

Via API I get the error: Invalid app.bsky.feed.post record: Record/text must not be longer than 300 graphemes

Expected behavior

The URL-Length should be calculated equal

Screenshots

grafik

Details

  • Platform: Desktop Edge
@mary-ext
Copy link
Contributor

mary-ext commented Mar 21, 2024

Not a bug, the app shortens the links for you when creating a post.

That's something you have to do by yourself if you're posting on your own.

@ulrischa
Copy link
Author

Can the url shortening that is used in the front end be used as a service?

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

No branches or pull requests

2 participants