From 0b442f6a2cb2cea5c59cbf07fae34d84816bb571 Mon Sep 17 00:00:00 2001 From: silverpill Date: Thu, 2 Feb 2023 00:48:03 +0000 Subject: [PATCH] Ignore forwarded Like activities --- CHANGELOG.md | 1 + src/activitypub/receiver.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1f7b44..cb6f759 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Use proof suites with prefix `Mitra`. - Added `https://w3id.org/security/data-integrity/v1` to JSON-LD context. - Return `202 Accepted` when activity is accepted by inbox endpoint. +- Ignore forwarded `Like` activities. ## [1.12.0] - 2023-01-26 diff --git a/src/activitypub/receiver.rs b/src/activitypub/receiver.rs index 3c05c8b..840a56c 100644 --- a/src/activitypub/receiver.rs +++ b/src/activitypub/receiver.rs @@ -302,8 +302,8 @@ pub async fn receive_activity( if !is_authenticated { match activity_type { CREATE => (), // Accept forwarded Create() activities - DELETE => { - // Ignore forwarded Delete(Person) and Delete(Note) activities + DELETE | LIKE => { + // Ignore forwarded Delete and Like activities return Ok(()); }, _ => {