diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-07-20 17:42:42 -0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-20 17:42:42 -0100 |
commit | 0fdd2a40792f0f7ef1fb820eebf850f4977eda95 (patch) | |
tree | 107bc716f77421cd6f0026d4643afffe40ece816 /lib/Service/NoteService.php | |
parent | 81ce4030861cb8f4d5c45cde51873b3ff7e27d0d (diff) | |
parent | d985dc87e2870430a84b7ed4573d1dde7bfc17bb (diff) |
Merge pull request #642 from nextcloud/feature/640/stream-liked
Add 'liked' stream
Diffstat (limited to 'lib/Service/NoteService.php')
-rw-r--r-- | lib/Service/NoteService.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/Service/NoteService.php b/lib/Service/NoteService.php index 27327709..b9043175 100644 --- a/lib/Service/NoteService.php +++ b/lib/Service/NoteService.php @@ -442,7 +442,7 @@ class NoteService { } - /**m + /** * * @param int $since * @param int $limit @@ -456,6 +456,19 @@ class NoteService { /** + * + * @param int $since + * @param int $limit + * + * @return Note[] + * @throws Exception + */ + public function getStreamLiked(int $since = 0, int $limit = 5): array { + return $this->streamRequest->getLiked($since, $limit); + } + + + /** * @param $noteId * * @return Person |