aaronpk / Aperture

Aperture is a Microsub server. Currently in beta.
https://aperture.p3k.io
Apache License 2.0
70 stars 5 forks source link

Fall back on feed-url when no url is available #61

Open sebsel opened 5 years ago

sebsel commented 5 years ago

Note: I'm running a very old version of this thing, so this might already be fixed? But I see no related issues, so filing it anyway.

Some feeds I follow do not have ideal Microformats and are therefore not really well parsed. Sometimes it's just content, no author, no URL. Sometimes there is not even text, just an empty entry.

I guess we can't just fall back on the URL of the feed to signify these posts, for that's known to be the wrong URL, but it would give at least some information about who's post it is that has broken Microformats.

What about a fallback to the URL of the feed with Aperture's internal ID in an anchor? http://example.com/feed#123

Example post:

{
  "_is_read": true,
  "content": {"text": "Looking forward to IWC Berlin!"},
  "type": "entry"
}

Really not sure myself if that's really a solution to the problem.