cave/activitypub: ignore more weird tags
This commit is contained in:
parent
6a78081469
commit
6f11e5a1fb
|
@ -118,12 +118,16 @@ impl Post {
|
|||
while tag.name.chars().next() == Some('#') {
|
||||
tag.name.remove(0);
|
||||
}
|
||||
if tag.name.chars().next() == Some('@') {
|
||||
// why do these occur?
|
||||
None
|
||||
} else if tag.name.len() > 0 {
|
||||
Some(tag)
|
||||
if let Some(c) = tag.name.chars().next() {
|
||||
// check the first letter
|
||||
if ['@', ':'].contains(&c) {
|
||||
// these are weird
|
||||
None
|
||||
} else {
|
||||
Some(tag)
|
||||
}
|
||||
} else {
|
||||
// no first letter
|
||||
None
|
||||
}
|
||||
}).collect(),
|
||||
|
|
Loading…
Reference in New Issue