diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-05-06 07:29:07 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-05-06 07:29:07 -0100 |
commit | 9854c65e0a7976783dafa6f733d77d4a3882d6d9 (patch) | |
tree | ece3f813742dfbee4245f9a07016859339fa352b /lib/Service/BoostService.php | |
parent | 51b936e48263b0300e8a4c8d79da28ac44ce097d (diff) |
cleaning/merging to master
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service/BoostService.php')
-rw-r--r-- | lib/Service/BoostService.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Service/BoostService.php b/lib/Service/BoostService.php index 60e3b4c0..a23bf956 100644 --- a/lib/Service/BoostService.php +++ b/lib/Service/BoostService.php @@ -34,7 +34,9 @@ use daita\MySmallPhpTools\Traits\TStringTools; use Exception; use OCA\Social\AP; use OCA\Social\Db\NotesRequest; +use OCA\Social\Exceptions\ItemUnknownException; use OCA\Social\Exceptions\NoteNotFoundException; +use OCA\Social\Exceptions\RedundancyLimitException; use OCA\Social\Exceptions\SocialAppConfigException; use OCA\Social\Model\ActivityPub\ACore; use OCA\Social\Model\ActivityPub\Activity\Undo; @@ -152,6 +154,9 @@ class BoostService { * * @return Stream * @throws NoteNotFoundException + * @throws SocialAppConfigException + * @throws ItemUnknownException + * @throws RedundancyLimitException */ public function get(Person $actor, string $postId): Stream { $stream = $this->notesRequest->getNoteByObjectId($actor, Announce::TYPE, $postId); @@ -166,7 +171,9 @@ class BoostService { * @param string $token * * @return ACore + * @throws ItemUnknownException * @throws NoteNotFoundException + * @throws RedundancyLimitException * @throws SocialAppConfigException */ public function delete(Person $actor, string $postId, &$token = ''): ACore { |