bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
8.84k stars 1.16k forks source link

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

Open ulrischa opened 7 months ago

ulrischa commented 7 months ago

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

mary-ext commented 7 months ago

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 commented 7 months ago

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