From 36811f1aaa96cb58ab5de5d59e28375f28414b74 Mon Sep 17 00:00:00 2001 From: Vika Shleina Date: Mon, 19 Jul 2021 12:49:30 +0300 Subject: Don't show internal links on h-cards --- src/frontend/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/frontend/mod.rs') diff --git a/src/frontend/mod.rs b/src/frontend/mod.rs index cfef379..8155b2c 100644 --- a/src/frontend/mod.rs +++ b/src/frontend/mod.rs @@ -477,7 +477,7 @@ mod templates { @if card["properties"]["url"].is_array() { ul { "Can be found elsewhere at:" - @for url in card["properties"]["url"].as_array().unwrap().iter().filter_map(|v| v.as_str()).filter(|v| v != &card["properties"]["uid"][0].as_str().unwrap()) { + @for url in card["properties"]["url"].as_array().unwrap().iter().filter_map(|v| v.as_str()).filter(|v| v != &card["properties"]["uid"][0].as_str().unwrap()).filter(|v| !v.starts_with(&card["properties"]["author"][0].as_str().unwrap())) { li { a."u-url"[href=url, rel="me"] { @url } } } } -- cgit 1.4.1