I’ve modified my feed reader to accept `figure` and `figcaption`—I mean, why not?—but because of how _microformats feeds_ are parsed, images themselves are stripped from _photo posts_, to be shown underneath, leaving the caption rather lonely. One way to deal with this is interpret photo posts’ content as (mostly) plain text, I guess.

(jan.boddez.net/notes/70d72e9fa)

It’s my still limited understanding of all things , undoubtedly, but all of this _feels like_ it’d be easier if we stopped trying to mimic Facebook products and just accept semantic HTML and be done with it.

(jan.boddez.net/notes/b1b0fbf0c)

Thing is, I _can't_ just _not_ strip images and pretend `h-entry`s are no different from, e.g., RSS items, because it is possible and quite common to have `u-photo`s adjacent to, rather than in, `e-content`. (What I could do, I suppose, is again check if images are in `e-content`, and only display, separately, I mean, those that aren't.)

Follow

One thing I really like is implicit post types. We don't hardcode one, it is implied by the (meta)data. What I don't like is how we then go and treat posts completely differently based on their type instead of establish a consistent "baseline behavior." Might as well have set an explicit post type then.

"Your client doesn't support photo posts? Reviews? Replies? Location posts? No worries, we'll make sure it can still show them as simple notes/articles! Same way we treat RSS/Atom entries!"

Now _that_ I would like, but it's not how microformats parsers/Microsub aggregators work.

Should require only a minor change to a library like X-Ray, which I've already (quite extensively), uhm, "refactored," anyway.

Think I may have found something. Currently _not_ stripping any images or video, i.e., leaving photo posts intact and displaying them as such. Then underneath, in a separate gallery of sorts, I display only those (`u-*`) images that aren't already in the post.

In my own "notes," I'll sometimes have a `u-photo` sit next to `e-content`, and this way it'll still be shown okay. Posts where a `u-photo` is part of `e-content`, though, will be shown exactly as on the web page itself.

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!