diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-09-12 11:38:03 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-09-25 14:06:47 +0200 |
commit | b1c50f91f61cf21e88e909b9c626aa883daf032d (patch) | |
tree | 4bf320600de2e7169209fe89f44d0b12b31ffb5a /lib/Service | |
parent | 115a8f87db2bd9b8bfecdcd381b6e0cf1dc094bd (diff) |
better queries parser, add endpoint for replies
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service')
-rw-r--r-- | lib/Service/StreamService.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/Service/StreamService.php b/lib/Service/StreamService.php index 22b6f6a6..499af4c1 100644 --- a/lib/Service/StreamService.php +++ b/lib/Service/StreamService.php @@ -36,7 +36,6 @@ use OCA\Social\Db\StreamRequest; use OCA\Social\Exceptions\InvalidOriginException; use OCA\Social\Exceptions\InvalidResourceException; use OCA\Social\Exceptions\ItemUnknownException; -use OCA\Social\Exceptions\StreamNotFoundException; use OCA\Social\Exceptions\RedundancyLimitException; use OCA\Social\Exceptions\RequestContentException; use OCA\Social\Exceptions\RequestNetworkException; @@ -44,6 +43,7 @@ use OCA\Social\Exceptions\RequestResultNotJsonException; use OCA\Social\Exceptions\RequestResultSizeException; use OCA\Social\Exceptions\RequestServerException; use OCA\Social\Exceptions\SocialAppConfigException; +use OCA\Social\Exceptions\StreamNotFoundException; use OCA\Social\Exceptions\UnauthorizedFediverseException; use OCA\Social\Model\ActivityPub\ACore; use OCA\Social\Model\ActivityPub\Actor\Person; @@ -390,6 +390,18 @@ class StreamService { /** + * @param string $id + * @param bool $asViewer + * + * @return Stream[] + * @throws StreamNotFoundException + */ + public function getRepliesByParentId(string $id, bool $asViewer = false): array { + return $this->streamRequest->getRepliesByParentId($id, $asViewer); + } + + + /** * @param Person $actor * @param int $since * @param int $limit |