cave/activitypub: don't convert tags that start with @. WAT?

This commit is contained in:
Astro 2023-10-16 02:55:47 +02:00
parent 5b9ff9213f
commit fb5e52224d
1 changed files with 4 additions and 1 deletions

View File

@ -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