forked from mirror/pixelfed
Merge pull request #1592 from pixelfed/frontend-ui-refactor
Update Accept AP Validator
This commit is contained in:
commit
ddfd8aecbf
1 changed files with 4 additions and 4 deletions
|
@ -16,15 +16,15 @@ class Accept {
|
||||||
'required',
|
'required',
|
||||||
Rule::in(['Accept'])
|
Rule::in(['Accept'])
|
||||||
],
|
],
|
||||||
'actor' => 'required|url|active_url',
|
'actor' => 'required|url',
|
||||||
'object' => 'required',
|
'object' => 'required',
|
||||||
'object.id' => 'required|url|active_url',
|
'object.id' => 'required|url',
|
||||||
'object.type' => [
|
'object.type' => [
|
||||||
'required',
|
'required',
|
||||||
Rule::in(['Follow'])
|
Rule::in(['Follow'])
|
||||||
],
|
],
|
||||||
'object.actor' => 'required|url|active_url',
|
'object.actor' => 'required|url',
|
||||||
'object.object' => 'required|url|active_url|same:actor',
|
'object.object' => 'required|url|same:actor',
|
||||||
])->passes();
|
])->passes();
|
||||||
|
|
||||||
return $valid;
|
return $valid;
|
||||||
|
|
Loading…
Reference in a new issue