In-reply-to » @lyse @mckinley @eaplmx the code you requested to follow all the twtxt mentions (https://github.com/tkanos/we-are-twtxt on the folder search)

@tkanos@twtxt.net Cool! I like your disclaimer in the readme. :-D A few things caught my eye while scrolling through the code, the ones I remember:

  1. The protocol switch in lines 141ff could make use of else if.
  2. There’s a superfluous space in the progress bar in line 155.
  3. The User-Agent header contains a { which I reckon is a typo. Also, I reckon the URL and nick should be swapped, in case you wanted to stick to this discoverability format.
  4. The feed discovery regex assumes that filenames always are twtxt.txt which will miss a few feeds, such as @anth@a.9srv.net’s and @hxii@0xff.nu’s. Parsing mentions would be more accurate. And then also parse all mentions from a twt, not just the first one.
  5. If you’re still bored, adding support for archived feeds would be a thing. :-)

Anyways, nice work!

⤋ Read More