#dev 2022-09-02

2022-09-02 UTC
#
[campegg]
I’m working on backfeeding favorites/retweets/replies from Twitter, and while they have a `retweets_of_me` endpoint in the API, they don’t seem to have the same for favorites and replies… what’s the best practice way of retrieving this info — surely it’s not a case of polling every tweet periodically, is it?
#
[tantek]4
I would check the Bridgy Backfeed source to answer that question 🙂
#
[campegg]
That’s a great idea —thanks, [tantek]!
#
gRegor
Got the Hangouts Takeout. JSON with a ton of nested details. Doubt it's any open standard.
#
gRegor
conversations > conversation > events > chat_message > message_content > segment > {"type":"text","value":"Hola"}
#
[tantek]4
wow. I can't even. layers of abstraction. architecture astronomy. seven layer data structure dip
#
gRegor
Helpful XD: delivery_medium_option.delivery_medium.medium_type = BABEL_MEDIUM
#
[tantek]4
yo dawg, I heard you like it medium with the medium option so I delivered some medium of the type medium for you
#
[snarfed]
[campegg] sadly yes, you have to poll every tweet periodically for favorites, at least in the v1 Twitter API, and recursively search and follow `in_reply_to_status_id`s for replies
#
[snarfed]
(not to mention the v1 API doesn't expose favorites at all, you have to scrape them from the web)
#
[snarfed]
v2 has favorites at least. can't fetch replies, exactly, but does let you search by `conversation_id`, which helps somewhat
gxt_ joined the channel
#
@lcptuk
Webmention W3C protocol for notifying a URL when a website links to it https://en.wikipedia.org/wiki/Webmention
(twitter.com/_/status/1565560671881895939)
cjw6k joined the channel
#
IWDiscordGateway
<capjamesg> gRegor that is strange.
[jeremycherfas], kloenk and gRegorLove_ joined the channel
#
[campegg]
That's helpful — thanks, [snarfed]!
tetov-irc, hs0ucy, netrunner, AramZS, [jeremycherfas]1, [Jamie_Tanna]1, gxt, jacky, neceve, voxpelli, sknebel and Seirdy joined the channel; netrunner left the channel
#
gRegor
Odd whitespace issue with <data> elements in Xray. Space after "attending" gets truncated in the text: https://xray.p3k.io/parse?url=https%3A%2F%2Fgregorlove.com%2F2022%2F08%2Fim-attending-homebrew-website-club%2F&pretty=true
#
gRegor
I've experienced this with feed readers consuming my Atom feed, too
#
aaronpk
oof weird
#
Loqi
[gRegor Morrill] I’m attendingHomebrew Website Club - Pacific August 31, 2022 at 6PM Pacific.
#
gRegor
So I wonder if there's some other dependency xray and feed readers have in common with an issue?
#
aaronpk
well it uses htmlpurifier
#
gRegor
Ahh, that also might explain why <data> doesn't end up in the html version either
#
aaronpk
well that's cause i don't have <data> tags in the list of allowed tags
#
aaronpk
but i'm sure a bunch of feed readers also use htmlpurifier so might want to check for issues there
#
gRegor
will do
jacky joined the channel
#
gRegor
5BCore.CollectErrors%5D=0&filter%5BNull_HTML.Allowed%5D=1&filter%5BNull_HTML.Doctype%5D=1&filter%5BHTML.SafeObject%5D=0&filter%5BHTML.TidyLevel%5D=medium&filter%5BURI.DisableExternalResources%5D=0&filter%5BNull_URI.Munge%5D=1&html=%3Cp%3EI%E2%80%99m+%3Cdata+class%3D%22p-rsvp%22+value%3D%22yes%22%3Eattending%3C%2Fdata%3E+%3Ca+class%3D%22u-in-reply-to+h-event%22+href%3D%22https%3A%2F%2Fevents.indieweb.org%2F2022%2F08%2Fhomebre
#
gRegor
w-website-club-pacific-H1OfUHjRi5QM%22%3EHomebrew+Website+Club+-+Pacific%3C%2Fa%3E+August+31%2C+2022+at+6PM+Pacific.%3C%2Fp%3E&submit=Submit
#
gRegor
ack, sorry
jacky, [chrisaldrich], kloenk, pmlnr and tetov-irc joined the channel