mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Fixed php8 compat issue, updated readme & templates
- Changed use of array spread since it was not supported in PHP8.0. - Updated issue templates based to reduce less valueable fields, update some details, and try to help bug reports be more focused on bugs. - Updated readme with peertube link and attribution advistory for translations PRs.
This commit is contained in:
@ -14,10 +14,9 @@ class WatchController extends Controller
|
||||
$this->checkPermission('receive-notifications');
|
||||
$this->preventGuestAccess();
|
||||
|
||||
$requestData = $this->validate($request, [
|
||||
$requestData = $this->validate($request, array_merge([
|
||||
'level' => ['required', 'string'],
|
||||
...$entityHelper->validationRules()
|
||||
]);
|
||||
], $entityHelper->validationRules()));
|
||||
|
||||
$watchable = $entityHelper->getVisibleEntityFromRequestData($requestData);
|
||||
$watchOptions = new UserEntityWatchOptions(user(), $watchable);
|
||||
|
Reference in New Issue
Block a user