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