returns stream actions on liked timeline

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/643/head
Maxence Lange 2019-07-20 18:21:26 -01:00
rodzic febb64c897
commit 92ba1df113
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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');

Wyświetl plik

@ -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);
}