Apply suggestions from code review

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Philipp
2022-11-27 01:52:14 +01:00
committed by GitHub
parent 4e53ba0c20
commit 272911527c
4 changed files with 1 additions and 8 deletions

View File

@@ -66,7 +66,6 @@ class Browser extends BaseModule
$files = Attach::selectToArray(['id', 'filename', 'filetype'], ['uid' => $this->session->getLocalUserId()]);
$fileArray = array_map([$this, 'map_files'], $files);
$tpl = Renderer::getMarkupTemplate('media/browser.tpl');

View File

@@ -74,7 +74,6 @@ class Upload extends \Friendica\BaseModule
}
$owner = User::getOwnerDataById($this->userSession->getLocalUserId());
if (!$owner) {
$this->logger->warning('Owner not found.', ['uid' => $this->userSession->getLocalUserId()]);
return $this->return(401, $this->t('Invalid request.'));