kylewm / redwind

Flask-based personal website #IndieWeb #OwnYourData
Other
45 stars 5 forks source link

Tweet text is not parsed correctly #66

Closed LanaCoyote closed 9 years ago

LanaCoyote commented 9 years ago

Contexts don't get the same treatment as the content of a post, meaning that @-names and links aren't parsed.

kylewm commented 9 years ago

is this problem specific to replying to Tweets, or are you thinking we'd need it in the general case?

LanaCoyote commented 9 years ago

I'm thinking we'd need it in the general case. It's weird that our posts would have links and references parsed and linked properly, but contexts would just be plaintext.

For example, if I replied to someone's post containing a link, a follower of my site would have to then go to the original post in order to click the link.

kylewm commented 9 years ago

well that at least shouldn't be true. HTML in the original is preserved (unless the post you're replying to is very long, then RW takes the plaintext version and truncates it), so as long as those things were linked in the original, they should be linked in the context.

LanaCoyote commented 9 years ago

The issue is that tweets do not preserve HTML, they use the tweet's text property.

kylewm commented 9 years ago

I think I'd like to start proxying through https://granary-demo.appspot.com to generate mf2 representations for instagram and twitter (that's what I did in Woodwind). That links up everything like it's supposed to.

kylewm commented 9 years ago

(decided for now, much easier to just link them ourself)