refactor: make a standalone re-tagging function

This commit is contained in:
Greg Heartsfield
2023-01-06 06:57:56 -06:00
parent ffd4e6f997
commit 50daab8a6f
2 changed files with 72 additions and 3 deletions
+2 -2
View File
@@ -176,11 +176,11 @@ impl Event {
}
/// Update delegation status
fn update_delegation(&mut self) {
pub fn update_delegation(&mut self) {
self.delegated_by = self.delegated_author();
}
/// Build an event tag index
fn build_index(&mut self) {
pub fn build_index(&mut self) {
// if there are no tags; just leave the index as None
if self.tags.is_empty() {
return;