1
0
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:
Dan Brown
2023-09-11 11:37:07 +01:00
parent 2fbf5527c7
commit 564dc70ac4
5 changed files with 22 additions and 38 deletions

View File

@ -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);