Ignore forwarded Like activities

This commit is contained in:
silverpill 2023-02-02 00:48:03 +00:00
parent 5a3ef41277
commit 0b442f6a2c
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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(());
},
_ => {