mirror of
https://github.com/friendica/friendica
synced 2025-04-22 11:10:11 +00:00
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
4e53ba0c20
commit
272911527c
4 changed files with 1 additions and 8 deletions
|
@ -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');
|
||||
|
|
|
@ -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.'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue