@@ -14,12 +14,10 @@ |
||
| 14 | 14 | use OCP\AppFramework\Controller; |
| 15 | 15 | use OCP\AppFramework\Http\TemplateResponse; |
| 16 | 16 | use OCP\AppFramework\Http\ContentSecurityPolicy; |
| 17 | -use OC\Encryption\Exceptions\DecryptionFailedException; |
|
| 18 | 17 | use OCP\IRequest; |
| 19 | 18 | use OCP\IConfig; |
| 20 | 19 | use OCP\IL10N; |
| 21 | 20 | use OCA\Notes\Service\NotesService; |
| 22 | -use OCA\Notes\Service\NoteDoesNotExistException; |
|
| 23 | 21 | |
| 24 | 22 | /** |
| 25 | 23 | * Class PageController |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | use OCA\Notes\Db\Note; |
| 22 | 22 | use OCA\Notes\Service\SettingsService; |
| 23 | 23 | use OCP\IConfig; |
| 24 | -use OCP\IUserSession; |
|
| 25 | 24 | |
| 26 | 25 | |
| 27 | 26 | /** |
@@ -95,6 +95,9 @@ |
||
| 95 | 95 | return $this->getNote($this->getFileById($folder, $id), $folder, $this->getTags($id)); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | + /** |
|
| 99 | + * @param integer $id |
|
| 100 | + */ |
|
| 98 | 101 | private function getTags ($id) { |
| 99 | 102 | $tagger = \OC::$server->getTagManager()->load('files'); |
| 100 | 103 | if($tagger===null) { |