17
submitted 5 months ago* (last edited 5 months ago) by threelonmusketeers@sh.itjust.works to c/lemmy@lemmy.ml

I assume that it somehow scrapes the page for some sort of header text, but this doesn't seem to always work.

For example, titles are suggested for spacenews.com articles, but not for europeanspaceflight.com articles. What differences result in suggested titles for one but not the other?

top 3 comments
sorted by: hot top controversial new old
[-] Zagorath@aussie.zone 12 points 5 months ago

I don't have any specific technical knowledge of how Lemmy-UI does things, but I'm reasonably confident that it uses the og:title. This is a tag in the site's metadata designed specifically to be the title that displays in places like Facebook and Twitter auto-generated thumbnails, and which is also used in things like Lemmy and Reddit which provide a "suggested title" to users.

[-] threelonmusketeers@sh.itjust.works 3 points 5 months ago

Ah, so the problem is with how some sites configure (or fail to configure) their metadata, rather than a problem with Lemmy?

[-] Zagorath@aussie.zone 2 points 5 months ago

Could be. Though Lemmy could also use the title property (the one users see in their tab header) as a fallback option if it wanted to, or some other fallback.

this post was submitted on 12 Apr 2024
17 points (90.5% liked)

Lemmy

11948 readers
1 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS