mirror of https://github.com/pixelfed/pixelfed.git
Merge pull request #1592 from pixelfed/frontend-ui-refactor
Update Accept AP Validator
This commit is contained in:
commit
ddfd8aecbf
|
@ -16,15 +16,15 @@ class Accept {
|
|||
'required',
|
||||
Rule::in(['Accept'])
|
||||
],
|
||||
'actor' => 'required|url|active_url',
|
||||
'actor' => 'required|url',
|
||||
'object' => 'required',
|
||||
'object.id' => 'required|url|active_url',
|
||||
'object.id' => 'required|url',
|
||||
'object.type' => [
|
||||
'required',
|
||||
Rule::in(['Follow'])
|
||||
],
|
||||
'object.actor' => 'required|url|active_url',
|
||||
'object.object' => 'required|url|active_url|same:actor',
|
||||
'object.actor' => 'required|url',
|
||||
'object.object' => 'required|url|same:actor',
|
||||
])->passes();
|
||||
|
||||
return $valid;
|
||||
|
|
Loading…
Reference in New Issue