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
Bridgy Publish to Twitter mishandles whitespace cr by removing it #530
Comments
👍 thanks for the report! |
Note that the Bridgy Publish POSSE copy to Facebook does not have these problems, and more to the point does preserve the line breaks! |
huh, interesting. that's a good point. i definitely don't understand what's going on then. odd. |
This looks to be a problem with post type detection. Bridgy thinks this is an article so it generates the publish content from the AS "displayName", which has html tags stripped. (Unfortunately, this bug was hidden because real linebreaks are preserved, so if the original content had linebreaks and <br>'s, then it would appear to work properly)
|
mostly this is useful for better determination of article vs. note. h-as-* explicit class types can override the discovered post type but in general this change makes them less important/necessary
two possible solutions, off the top of my head:
thoughts? |
Oh actually this was fixed in snarfed/granary@fe6addf .. I hadn't closed yet because I still wanted to add a test for this exact post |
thanks @kylewm! confirmed manually too, the fix works in a preview of tantek's post: |
Confirmed with live test: https://twitter.com/t/status/663016908623511552 published with Bridgy Publish from http://tantek.com/2015/311/t3/indiewebcamp-mit-the-album |
👍 thanks t! |
https://twitter.com/t/status/659200761427980288 was published by Bridgy Publish from http://tantek.com/2015/300/t1/social-web-session-w3c-tpac2015 and as you can see from the first hyperlink on the tweet:
Note the "/Social Web" - that should be "/ Social Web", and there's a return (cr) in the original that somehow Bridgy Publish removed, and thus errantly appended "Social" to the end of that IG URL
Bridgy Publish should be respecting whitespace by collapsing/keeping it as a single space at minimum, but ideally it should be preserving and passing along ALL whitespace from the original, since Twitter actually supports whitespace formatting!
https://indiewebcamp.com/note#Whitespace
The text was updated successfully, but these errors were encountered: