diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-05-06 18:45:09 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-05-06 18:45:09 -0100 |
commit | 109680149a5e1b433164cf634c5be233b002e3e9 (patch) | |
tree | bfe867a8cc128ec433e2bfe1e6b36ba92223bea8 /lib/Controller/LocalController.php | |
parent | 88a0d72740dc8c3bff670f013f04eda758f8940a (diff) |
+limitToType
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Controller/LocalController.php')
-rw-r--r-- | lib/Controller/LocalController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/LocalController.php b/lib/Controller/LocalController.php index 5f68a7fe..5e7dcd6a 100644 --- a/lib/Controller/LocalController.php +++ b/lib/Controller/LocalController.php @@ -37,6 +37,7 @@ use OCA\Social\AppInfo\Application; use OCA\Social\Exceptions\AccountDoesNotExistException; use OCA\Social\Exceptions\InvalidResourceException; use OCA\Social\Model\ActivityPub\Actor\Person; +use OCA\Social\Model\ActivityPub\Object\Note; use OCA\Social\Model\ActivityPub\Stream; use OCA\Social\Model\Post; use OCA\Social\Service\AccountService; @@ -191,7 +192,7 @@ class LocalController extends Controller { throw new InvalidResourceException('user have no rights'); } - $this->noteService->deleteLocalItem($note); + $this->noteService->deleteLocalItem($note, Note::TYPE); return $this->success(); } catch (Exception $e) { |