about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika Shleina <vika@fireburn.ru>2021-07-19 12:49:30 +0300
committerVika Shleina <vika@fireburn.ru>2021-07-19 12:49:30 +0300
commit36811f1aaa96cb58ab5de5d59e28375f28414b74 (patch)
tree0bfd55672bb134a1298457e70effc97719255659
parentbc7f785bd88344d6be9cb32327ef108e03695345 (diff)
downloadkittybox-36811f1aaa96cb58ab5de5d59e28375f28414b74.tar.zst
Don't show internal links on h-cards
-rw-r--r--src/frontend/mod.rs2
1 files changed, 1 insertions, 1 deletions
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 } }
                         }
                     }