#microformats 2024-09-24

2024-09-24 UTC
nweiz joined the channel
#
nweiz
hey folks! I'm interested in using h-entry to represent something similar to Tumblr reblogs where a reply embeds a representation of the post it's replying to
#
nweiz
the spec says u-in-reply-to can be "an embedded h-cite" which seems like what I'm after
#
nweiz
but I'm not sure what it means to "embed" a structured microformat like that into a property
#
gRegor
Welcome, nweiz! Usually that means putting the nested h-* on the same element as the property, like: `<a href="https://example.com/post" class="u-in-reply-to h-cite">`
#
gRegor
The indieweb wiki (there's some community overlap) might have some minimal how-to HTML for different post types like reposts, replies, etc.
#
gRegor
(u-in-reply-to is for replies, u-repost-of is for reposts, or what tumblr calls reblogs)
#
nweiz
those two things can be intertwined, though—what if I'm reposting something and replying to it at the same time?
#
nweiz
do I write something like `<a href="#my-repost-id" class="u-in-reply-to">` and then have `u-repost-of` within `<article class="h-entry" id="#my-repost-id">`?
#
[tantek]
Can you do that on Tumblr? Would be interesting to see an example!
#
gRegor
I'm not aware of any microformats consumers that would use both of those, so probably better off with one or the other. You might also be looking for https://indieweb.org/quotation
#
gRegor
A reply is usually intended to show up on the original post as a comment (if they choose to show it)
#
[Joe_Crawford]
https://indieweb.org/repost includes detail on tumblrs notion of a reblog
#
nweiz
here's an example, where the account @massachusetts-official reposted and replied to a post by @casquecest https://www.tumblr.com/massachusetts-official/762452450719465472/official-post-of-massachusetts
#
nweiz
worth noting that https://indieweb.org/quotation explicitly says that reposts are preferred when quoting an entire post
#
gRegor
Yeah, tumblr reblogs are a weird middle place. It's basically a repost + commentary, which is more in line with a quotation post than a repost. Repost dfn is kind of strict, "A repost on the indieweb is a post that is purely a 100% re-publication of another"
#
gRegor
Twitter has/had quote tweets too, which is kinda similar
#
gRegor
In general I would consider how you might want it to show up on the original post. "so and so reblogged this" or a comment in reply to the post
#
nweiz
the former more than the latter, generally
#
nweiz
half the people I might end up in a network with are using static site generators anyway, so backreferences are relatively less on my radar
#
nweiz
(including me)
#
gRegor
That would be a u-repost-of. That's how I handle reposts, I only show "[name] reposted this"
#
nweiz
and just not do u-in-reply-to at all?
#
gRegor
Right, one or the other based on your intent. My first example is u-repost-of, second example is u-in-reply-to
#
gRegor
Another way to look at this is the Post Type Discovery algorithm. If you used both properties, most consumers are only going to see it as a reply: https://indieweb.org/post-type-discovery#Algorithm
#
gRegor
Since in-reply-to has a higher precedence than repost-of
#
nweiz
is it possible to nest h-entries?
#
gRegor
For this type of scenario I think you want a nested h-cite. Here's a made up example: https://php.microformats.io/?id=20240924023354216
#
gRegor
Here's how the fuller repost example looks parsed: https://php.microformats.io/?id=20240924023700185
#
gRegor
That first parse isn't a repost or a reply, just a demo of nested microformats.
#
gRegor
Answer to your question is "Yes" in general, but the next question is "how is this being consumed?" Not aware of any consumers doing anything special with h-entry inside h-entry
[fluffy] joined the channel
#
nweiz
sure, makes sense
#
nweiz
unrelated question: is there a good solution for when you want a repost of your posts to have somewhat different markup than the original?
#
nweiz
for example, I have some components that rely pretty heavily on my own stylesheets to look decent
#
nweiz
if someone's reblogging, it'll look a lot better as something much more barebones
#
nweiz
with a few inline styles
#
nweiz
(which is already a variant I include in my feed)
#
gRegor
Not that I'm aware of
[tantek], [aciccarello], [schmarty], [fluffy], [Jo], [snarfed], barnaby, barnabywalters, [KevinMarks], zicklepop, [manton], xgpt, jacky, [qubyte], lazcorp and _pi_r2_0[d] joined the channel