feat: accept EmojiReaction too

This commit is contained in:
əlemi 2025-01-15 00:22:52 +01:00
parent 870bbf4325
commit 381e108d38
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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?),