pleroma.debian.social

pleroma.debian.social

@venthur
So does ptlink, the thing I wrote πŸ˜‰

The basic ini format of planet Venus is simple to parse and thus easy to be compatible with. Also the html template engine they used had origins in perl, which I use for ptlink. So backwards compatibility with Venus is trivial and done.
@Ganneff

@venthur
But on top of that, PtLink comes with

- a full test suite with known failures that were fixed and 93.1% coverage
- multi threading support
- a modular design with plans to also support ActivityPub (and perhaps more), as that's more popular than blogs these days.
@Ganneff

@Ganneff
Unfortunately it also has a maintainer who hasn't been as active as he'd have liked. Hopefully I can fix that soon πŸ˜‰
@venthur

@mirabilos
I've never heard of this attribute.

Can you give me an example of a feed with this attribute? That'd make it easy to add a (currently failing) test case which I can then implement properly.

Preferably as a bug report against the salsa repository.
@venthur @Ganneff

@mirabilos @venthur @Ganneff @wouter be gentle with Planet, folks. It’s been going for over twenty years!
replies
0
announces
0
likes
1

@mirabilos
Checking https://www.rssboard.org/rss-specification#ltttlgtSubelementOfLtchannelgt, I'm not sure that ttl actually means "do not update more often than this"; instead, my reading is that it means "if the source is older than this value, invalidate the cache entries for them". So I don't think it's a bug to update at every run...
@venthur @Ganneff

@venthur
PtLink uses a format-agnostic parser to figure out details of a stream, so that's not an issue (it will just return undef if a valid is not set, whether because it's optional and not set or because the format doesn't support it).

It also uses HTTP headers such as if-changed-since (not sure about etag, might have that too) to tell the server not to send anything unless there's an update since the last change.
@Ganneff @mirabilos

@mirabilos
I read it as "don't bother using your cache if it's older than this"

Unfortunately the spec is not very detailed, so while I think my reading is correct, I'm not confident enough of that to state that yours is wrong.

Regardless of which is the intended reading, it could definitely benefit from a "don't bother asking me if your cache is more recent than this" field.
@Ganneff @venthur

@venthur @Ganneff Oh yes! https://salsa.debian.org/wouter/ptlink. It's in production use for https://planet.grep.be, and I have a (somewhat outdated by now, but still) configuration that works for Planet Debian at https://salsa.debian.org/wouter/pd-config/-/tree/ptlink?ref_type=heads

@venthur @Ganneff (I just updated the config, seemed to work with no conflicts, so yay)

@Ganneff
@venthur
Forgot to mention:

Planet Debian uses Django templates, which PtLink does not support (because perl, and Dotiac::DTL doesn't actually work as advertised -- yes, I tried). So I translated the templates to perl. Since Planet Debian has templates in a different git repository, so do I ;-)

https://salsa.debian.org/wouter/pd-templates