Remove duplicate tags when processing remote posts
This commit is contained in:
parent
74eca31a53
commit
48331382c3
1 changed files with 3 additions and 1 deletions
|
@ -155,7 +155,9 @@ pub async fn handle_note(
|
||||||
if let Some(tag_name) = tag.name {
|
if let Some(tag_name) = tag.name {
|
||||||
// Ignore invalid tags
|
// Ignore invalid tags
|
||||||
if let Ok(tag_name) = normalize_tag(&tag_name) {
|
if let Ok(tag_name) = normalize_tag(&tag_name) {
|
||||||
tags.push(tag_name);
|
if !tags.contains(&tag_name) {
|
||||||
|
tags.push(tag_name);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} else if tag.tag_type == MENTION {
|
} else if tag.tag_type == MENTION {
|
||||||
|
|
Loading…
Reference in a new issue