danito / KnownMastodon

Syndicate to Mastodon
Apache License 2.0
26 stars 5 forks source link

Longer toots (but less than 500 chars) get truncated incorrectly #14

Open raucao opened 6 years ago

raucao commented 6 years ago

I recently discovered that longer toots, usually with multiple paragraphs, get truncated for some reason. I verified that the character count is less than 500, and I tried debugging the code, but tbh I have no idea why this would happen.

I did find out on the way that from what I could see, I think it's deducting the length of the permalink length before truncating (hence potentially truncating things that don't need it, but are close to 500 chars). But this happens to me with 350-char toots as well, and I don't think the permalinks are that long.