From 381e108d3835133902e48896742a8ca35492b029 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 15 Jan 2025 00:22:52 +0100 Subject: [PATCH] feat: accept EmojiReaction too --- upub/core/src/traits/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upub/core/src/traits/process.rs b/upub/core/src/traits/process.rs index 0f8086f..0442d74 100644 --- a/upub/core/src/traits/process.rs +++ b/upub/core/src/traits/process.rs @@ -39,7 +39,7 @@ impl Processor for crate::Context { async fn process(&self, activity: impl apb::Activity, tx: &DatabaseTransaction) -> Result<(), ProcessorError> { // TODO we could process Links and bare Objects maybe, but probably out of AP spec? match activity.activity_type()? { - apb::ActivityType::Like => Ok(process_like(self, activity, tx).await?), + apb::ActivityType::Like | apb::ActivityType::EmojiReact => Ok(process_like(self, activity, tx).await?), apb::ActivityType::Dislike => Ok(process_dislike(self, activity, tx).await?), apb::ActivityType::Create => Ok(process_create(self, activity, tx).await?), apb::ActivityType::Follow => Ok(process_follow(self, activity, tx).await?),