mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update PrivacySettings
This commit is contained in:
parent
c27c751543
commit
8788bf27db
1 changed files with 1 additions and 10 deletions
|
@ -134,16 +134,7 @@ trait PrivacySettings
|
||||||
public function blockedInstanceStore(Request $request)
|
public function blockedInstanceStore(Request $request)
|
||||||
{
|
{
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'domain' => [
|
'domain' => 'required|active_url'
|
||||||
'required',
|
|
||||||
'min:3',
|
|
||||||
'max:100',
|
|
||||||
function($attribute, $value, $fail) {
|
|
||||||
if(!filter_var($value, FILTER_VALIDATE_DOMAIN)) {
|
|
||||||
$fail($attribute. 'is invalid');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
]);
|
]);
|
||||||
$domain = $request->input('domain');
|
$domain = $request->input('domain');
|
||||||
$instance = Instance::firstOrCreate(['domain' => $domain]);
|
$instance = Instance::firstOrCreate(['domain' => $domain]);
|
||||||
|
|
Loading…
Reference in a new issue