Merge pull request #1151 from pixelfed/frontend-ui-refactor

Update ActivityPub helper
This commit is contained in:
daniel 2019-04-18 00:33:08 -06:00 committed by GitHub
commit 3ea853aa6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,13 +33,13 @@ class Helpers {
$valid = Validator::make($data, [
'type' => [
'required',
'string',
Rule::in($verbs)
],
'id' => 'required|string',
'actor' => 'required|string|url',
'object' => 'required',
'object.type' => 'required_if:type,Create',
'object.attachment' => 'required_if:type,Create',
'object.attributedTo' => 'required_if:type,Create|url',
'published' => 'required_if:type,Create|date'
])->passes();