kopia lustrzana https://github.com/nextcloud/social
returns stream actions on liked timeline
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/643/head
rodzic
febb64c897
commit
92ba1df113
|
@ -518,12 +518,13 @@ class StreamRequest extends StreamRequestBuilder {
|
|||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getLiked(int $since = 0, int $limit = 5, bool $localOnly = true): array {
|
||||
public function getTimelineLiked(int $since = 0, int $limit = 5, bool $localOnly = true): array {
|
||||
$qb = $this->getStreamSelectSql();
|
||||
$this->limitPaginate($qb, $since, $limit);
|
||||
|
||||
$this->limitToType($qb, Note::TYPE);
|
||||
|
||||
$this->leftJoinStreamAction($qb);
|
||||
$this->leftJoinCacheActors($qb, 'attributed_to');
|
||||
$this->leftJoinActions($qb, Like::TYPE);
|
||||
$this->filterDBField($qb, 'id', '', false, 'a');
|
||||
|
|
|
@ -464,7 +464,7 @@ class NoteService {
|
|||
* @throws Exception
|
||||
*/
|
||||
public function getStreamLiked(int $since = 0, int $limit = 5): array {
|
||||
return $this->streamRequest->getLiked($since, $limit);
|
||||
return $this->streamRequest->getTimelineLiked($since, $limit);
|
||||
}
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue