this post was submitted on 08 May 2024
2 points (100.0% liked)

Article Interop WG

34 readers
1 users here now

A group to discuss how Article objects can be better supported across the fediverse

founded 7 months ago
MODERATORS
 

Article Interop WG: How to represent titles?

Should title be inserted into Article.content as an <h1> tag, or should it go to Article.name?

@article_interop

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 4 months ago (2 children)

@silverpill that's interesting because I'd say no, but html pages frequently duplicate title and h1.

[–] [email protected] 1 points 4 months ago* (last edited 4 months ago)

That makes sense to me. The is metadata, and often includes context that isn't necessary in the article body.

[–] [email protected] 1 points 4 months ago (1 children)

@tedu @article_interop There might be popular services where name is ignored completely but <h1> in content gracefully degrades. If that's the case, <h1> (or <h1> plus name) would be preferable.

AFAIK Mastodon doesn't have this problem and will display Article.name. I don't know about the others.

[–] [email protected] 1 points 4 months ago

@tedu @article_interop

Found the answer here: https://funfedi.dev/support_tables/generated/object_types/

Sharkey seems to be ignoring the name, I guess this means Misskey does that as well.

[–] [email protected] 1 points 4 months ago (1 children)

@silverpill @article_interop article.name would be ideal, though I think lemmy expects title

[–] [email protected] 1 points 4 months ago* (last edited 4 months ago)

@django @silverpill @article_interop Lemmy uses 'name' on a Page (not Article).

If you get the URL of any Lemmy post and do a GET with the Accept header set to "application/activity+json" you'll see everything.