FixTweet icon indicating copy to clipboard operation
FixTweet copied to clipboard

No support for Community Notes in Fx Twitter API

Open baatochan opened this issue 1 year ago • 4 comments

Hi, Thanks for your work on this API, it really does make using twitter on tg/dc easier. I have noticed that fxtw api doesn't support community notes on twitter posts. i.fxtwitter.com instant view pages also doesn't show if a post contain a community notes or not. That's why I wanted to report it as a feature request as community notes are very often an important part of the post. I'm sorry if it has been already reported. Example tweet with community notes: https://twitter.com/GooglePlay/status/1784251162234880165

baatochan avatar Apr 29 '24 17:04 baatochan

I've actually been wanting to implement this at some point anyway, I think it's a good idea

dangeredwolf avatar Apr 29 '24 17:04 dangeredwolf

👀 image

dangeredwolf avatar Apr 30 '24 01:04 dangeredwolf

Thanks so much. I can confirm it works. Btw is it possible that tweet.community_note.entities.entity.ref.type would be something different than URL (TimelineUrl)?

baatochan avatar Apr 30 '24 11:04 baatochan

So for context, an annoying thing is that unfortunately unlike for links in a tweet, the api doesn't provide extended urls for community notes, only the t.co links. For now I've just passed through the entities from the twitter api directly.

But to answer your question... Probably not, but it's possible the Twitter API could pass through different types in the future.

Also ngl I kinda forgot I already published community notes in the public api since I haven't documented it yet.... Oops. I guess that's what I get for staying up until 4 am working on this xdd

Should I leave it as-is so if for whatever reason they add more it'll be instantly available or should I simplify it to a simpler, stable url_entities that validates the type is TimelineUrl (or equivalent) beforehand? I'm kind of leaning towards the latter for consistency with the rest of FixTweet's API but like I said I already published the change to the api without documenting it, oops.

dangeredwolf avatar Apr 30 '24 13:04 dangeredwolf