From 14e58b4137f8f77af43cad8b712596c2e1ab7e8a Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 26 Aug 2024 17:49:45 +0300 Subject: Indicate `u-uid` as `rel=canonical` This only displays on top-level entries, not ones in feeds. This should help search indexers know which URI is the canonical for a given link. I wonder why Google doesn't bother to parse MF2 markup. Do they think themselves monarchs of the Internet, able to show peasants their place? their search results are shitty anyway, I'd rather ask GPT-2. Yes, GPT TWO. Not even 3, 4 or 4o! --- src/frontend/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/frontend/mod.rs b/src/frontend/mod.rs index 4120b55..69f6aa5 100644 --- a/src/frontend/mod.rs +++ b/src/frontend/mod.rs @@ -367,7 +367,7 @@ pub async fn catchall( feeds: channels, user: session.as_deref(), content: match post.pointer("/type/0").and_then(|i| i.as_str()) { - Some("h-entry") => Entry { post: &post }.to_string(), + Some("h-entry") => Entry { post: &post, from_feed: false, }.to_string(), Some("h-feed") => Feed { feed: &post, cursor: cursor.as_deref() }.to_string(), Some("h-card") => VCard { card: &post }.to_string(), unknown => { -- cgit 1.4.1