Skip to content

Commit

Permalink
Validate spoofing for all activities
Browse files Browse the repository at this point in the history
  • Loading branch information
KitaitiMakoto committed Dec 22, 2020
1 parent 45b4683 commit d6a946f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions plume-common/src/activity_pub/inbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d6a946f

Please sign in to comment.