From 12d4bd7fe4542f8b6b42295c01c121c1097bdfaa Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 12 Jan 2019 01:24:31 -0700 Subject: [PATCH] Add Like ap validator --- app/Util/ActivityPub/Validator/Like.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app/Util/ActivityPub/Validator/Like.php diff --git a/app/Util/ActivityPub/Validator/Like.php b/app/Util/ActivityPub/Validator/Like.php new file mode 100644 index 00000000..2573c1af --- /dev/null +++ b/app/Util/ActivityPub/Validator/Like.php @@ -0,0 +1,25 @@ + 'required', + 'id' => 'required|string', + 'type' => [ + 'required', + Rule::in(['Like']) + ], + 'actor' => 'required|url|active_url', + 'object' => 'required|url|active_url' + ])->passes(); + + return $valid; + } +} \ No newline at end of file