Skip to content

Commit

Permalink
Ensure userId is set
Browse files Browse the repository at this point in the history
This commit fixes issue nextcloud#72
  • Loading branch information
Maciek Barczak committed Jan 18, 2021
1 parent 8be0054 commit ffd6382
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Service/SearchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ public function improveSearchRequest(ISearchRequest $request) {
$this->searchQueryInOptions($request);
$this->searchQueryFiltersExtension($request);
$this->searchQueryFiltersSource($request);

if($this->userId === null) {
$this->userId = $this->miscService->secureUsername($request->getAuthor());
}
$request->addPart('comments');
$this->extensionService->searchRequest($request);
}
Expand Down

0 comments on commit ffd6382

Please sign in to comment.