diff options
author | Vika Shleina <vika@fireburn.ru> | 2021-07-19 12:49:30 +0300 |
---|---|---|
committer | Vika Shleina <vika@fireburn.ru> | 2021-07-19 12:49:30 +0300 |
commit | 36811f1aaa96cb58ab5de5d59e28375f28414b74 (patch) | |
tree | 0bfd55672bb134a1298457e70effc97719255659 /src/frontend | |
parent | bc7f785bd88344d6be9cb32327ef108e03695345 (diff) | |
download | kittybox-36811f1aaa96cb58ab5de5d59e28375f28414b74.tar.zst |
Don't show internal links on h-cards
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/mod.rs | 2 |
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 } } } } |