Skip to content

Commit

Permalink
Merge pull request 'Validate proofing for all activities' (Plume-org#851
Browse files Browse the repository at this point in the history
) from prevent-spoof into main

Reviewed-on: https://git.joinplu.me/Plume/Plume/pulls/851
  • Loading branch information
KitaitiMakoto committed Dec 24, 2020
2 parents 2a5a2ec + d6a946f commit 8cc56d8
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 8cc56d8

Please sign in to comment.