mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-01-11 13:45:25 +00:00
Merge pull request 'Validate proofing for all activities' (#851) from prevent-spoof into main
Reviewed-on: https://git.joinplu.me/Plume/Plume/pulls/851
This commit is contained in:
commit
8cc56d8d81
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 {
|
fn is_spoofed_activity(actor_id: &str, act: &serde_json::Value) -> bool {
|
||||||
use serde_json::Value::{Array, Object, String};
|
use serde_json::Value::{Array, Object, String};
|
||||||
|
|
||||||
if act["type"] != String("Create".to_string()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
let attributed_to = act["object"].get("attributedTo");
|
let attributed_to = act["object"].get("attributedTo");
|
||||||
if attributed_to.is_none() {
|
if attributed_to.is_none() {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue