Skip to content

Commit

Permalink
fix!: remove todo macro (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa authored Dec 1, 2024
1 parent 94463ec commit 29487a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions crates/apub/src/activities/create_or_update/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,9 @@ impl ActivityHandler for CreateOrUpdateNote {
}

async fn receive(self, data: &Data<Self::DataType>) -> Result<(), Self::Error> {
match self.kind {
CreateOrUpdateType::CreateType(_) => ApubPost::from_json(self.object, data).await?,
CreateOrUpdateType::UpdateType(_) => todo!(), // TODO
};
if let CreateOrUpdateType::CreateType(_) = self.kind {
ApubPost::from_json(self.object, data).await?;
} // TODO: match update note (CreateOrUpdateType::UpdateType(_))

Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion crates/cron/src/tasks/check_feed_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub async fn check_feed_item(
Some(prev_date_modified) if prev_date_modified != date_modified =>
update_feed_item(item, user, data, top_level).await?,
None => update_feed_item(item, user, data, top_level).await?,
_ => todo!(),
_ => {}, // there is nothing to do
};
}

Expand Down

0 comments on commit 29487a7

Please sign in to comment.