HTTP only feeds don't work
EvanKrall opened this issue · 2 comments
I'm trying to follow http://radar.spacebar.org/f/a/weblog/rss/1 but cannot; When I go to https://mastofeeder.com/.well-known/webfinger?resource=acct:radar.spacebar.org.f.a.weblog.rss.1@mastofeeder.com I see no "rel":"self"
link.
Am I doing something wrong?
Hmm. It seems that the site is http-only, and Mastofeeder only supports https sites for the time being. I'll change the issue's title a bit to reflect the issue better
I'll add a few thoughts about this here for future reference.
The real issue is, that the part of the code that guesses the correct interpretation of the dot-formatted username is getting a bit hairy:
mastofeeder/src/fetch-url-info.ts
Line 58 in f7fa0ae
I'm thinking that this part needs a bit of refactoring, preferably some kind of lightweight abstraction/DSL rather than a procedural approach. That approach should IMO support combining multiple choices into different combinations, e.g.
- An URL can have
http
/https
- An URL can end in ``/
.rss
/`.xml`
These two combinations already result in six different URLs:
- http://domain.com/feed
- https://domain.com/feed
- http://domain.com/feed.xml
- http://domain.com/feed.xml
- https://domain.com/feed.rss
- http://domain.com/feed.rss
So we'd need some kind of way to describe this, e.g.:
const choices = [
prepend('http', 'https'),
append('', '.xml', '.rss')
// ....etc
]
and then some mechanism that produces all combinations of those and checks them until it finds a result