feat(activitypub-base): LikeActivity struct + on_like/on_announce_received trait methods

This commit is contained in:
2026-05-15 04:49:20 +02:00
parent 6d365dd3cf
commit 0cf34184d9
3 changed files with 40 additions and 0 deletions

View File

@@ -170,6 +170,14 @@ impl ApObjectHandler for ThoughtsObjectHandler {
.map_err(|e| anyhow!("{e}"))
}
async fn on_like(&self, _object_url: &Url, _actor_url: &Url) -> Result<()> {
Ok(())
}
async fn on_announce_received(&self, _object_url: &Url, _actor_url: &Url) -> Result<()> {
Ok(())
}
async fn count_local_posts(&self) -> Result<u64> {
self.repo
.count_local_notes()