From fb5e52224d56c798c0204577b10ac1734203fc54 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 16 Oct 2023 02:55:47 +0200 Subject: [PATCH] cave/activitypub: don't convert tags that start with @. WAT? --- cave/src/activitypub/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cave/src/activitypub/mod.rs b/cave/src/activitypub/mod.rs index 5ff4cc7..607ef91 100644 --- a/cave/src/activitypub/mod.rs +++ b/cave/src/activitypub/mod.rs @@ -116,7 +116,10 @@ impl Post { while tag.name.chars().next() == Some('#') { tag.name.remove(0); } - if tag.name.len() > 0 { + if tag.name.chars.next() == Some('@') { + // why do these occur? + None + } else if tag.name.len() > 0 { Some(tag) } else { None