mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-22 19:41:03 +00:00
Validate spoofing for all activities
This commit is contained in:
parent
45b46838ae
commit
d6a946f5b9
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue