summaryrefslogtreecommitdiffstats
path: root/lib/Db
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-12-02 19:29:55 -0100
committerJulius Härtl <jus@bitgrid.net>2018-12-03 07:15:16 +0100
commit7f747a06553ae8f46f075847848ec9da4d8196ce (patch)
tree0a67325881fffd2a765a01276595b75a71a3c705 /lib/Db
parentb5abb5d09c388fce884d323cf6158757f9fcc51c (diff)
returns details about the followed, not the follower.
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Db')
-rw-r--r--lib/Db/FollowsRequest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Db/FollowsRequest.php b/lib/Db/FollowsRequest.php
index 01640058..f6f27732 100644
--- a/lib/Db/FollowsRequest.php
+++ b/lib/Db/FollowsRequest.php
@@ -194,7 +194,7 @@ class FollowsRequest extends FollowsRequestBuilder {
public function getFollowingByActorId(string $actorId): array {
$qb = $this->getFollowsSelectSql();
$this->limitToActorId($qb, $actorId);
- $this->leftJoinCacheActors($qb, 'actor_id');
+ $this->leftJoinCacheActors($qb, 'object_id');
$qb->orderBy('creation', 'desc');
$follows = [];