From d6a946f5b93ed1bccbb9f94afc95f42e365bf9a4 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Tue, 22 Dec 2020 16:31:12 +0900 Subject: [PATCH] Validate spoofing for all activities --- plume-common/src/activity_pub/inbox.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/plume-common/src/activity_pub/inbox.rs b/plume-common/src/activity_pub/inbox.rs index 5ce078c7..b0598d74 100644 --- a/plume-common/src/activity_pub/inbox.rs +++ b/plume-common/src/activity_pub/inbox.rs @@ -231,9 +231,6 @@ where fn is_spoofed_activity(actor_id: &str, act: &serde_json::Value) -> bool { use serde_json::Value::{Array, Object, String}; - if act["type"] != String("Create".to_string()) { - return false; - } let attributed_to = act["object"].get("attributedTo"); if attributed_to.is_none() { return false;