Ignore forwarded Like activities
This commit is contained in:
parent
5a3ef41277
commit
0b442f6a2c
2 changed files with 3 additions and 2 deletions
|
@ -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`.
|
- Use proof suites with prefix `Mitra`.
|
||||||
- Added `https://w3id.org/security/data-integrity/v1` to JSON-LD context.
|
- Added `https://w3id.org/security/data-integrity/v1` to JSON-LD context.
|
||||||
- Return `202 Accepted` when activity is accepted by inbox endpoint.
|
- Return `202 Accepted` when activity is accepted by inbox endpoint.
|
||||||
|
- Ignore forwarded `Like` activities.
|
||||||
|
|
||||||
## [1.12.0] - 2023-01-26
|
## [1.12.0] - 2023-01-26
|
||||||
|
|
||||||
|
|
|
@ -302,8 +302,8 @@ pub async fn receive_activity(
|
||||||
if !is_authenticated {
|
if !is_authenticated {
|
||||||
match activity_type {
|
match activity_type {
|
||||||
CREATE => (), // Accept forwarded Create() activities
|
CREATE => (), // Accept forwarded Create() activities
|
||||||
DELETE => {
|
DELETE | LIKE => {
|
||||||
// Ignore forwarded Delete(Person) and Delete(Note) activities
|
// Ignore forwarded Delete and Like activities
|
||||||
return Ok(());
|
return Ok(());
|
||||||
},
|
},
|
||||||
_ => {
|
_ => {
|
||||||
|
|
Loading…
Reference in a new issue