]> git.mxchange.org Git - friendica.git/commitdiff
Add relationship filter to api_friends_ids and api_followers_ids
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 13 Dec 2019 16:43:45 +0000 (11:43 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 13 Dec 2019 16:43:45 +0000 (11:43 -0500)
include/api.php

index 20c5d2264f3515753ed7d57a1678314781751223..5329e0b1f3053df119c2b9a5e5284069a42f9ec8 100644 (file)
@@ -3657,11 +3657,14 @@ function api_ff_ids($type, int $rel)
  * @return array|string
  * @throws BadRequestException
  * @throws ForbiddenException
+ * @throws ImagickException
+ * @throws InternalServerErrorException
+ * @throws UnauthorizedException
  * @see https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friends-ids
  */
 function api_friends_ids($type)
 {
-       return api_ff_ids($type);
+       return api_ff_ids($type, Contact::SHARING);
 }
 
 /**
@@ -3672,11 +3675,14 @@ function api_friends_ids($type)
  * @return array|string
  * @throws BadRequestException
  * @throws ForbiddenException
+ * @throws ImagickException
+ * @throws InternalServerErrorException
+ * @throws UnauthorizedException
  * @see https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-followers-ids
  */
 function api_followers_ids($type)
 {
-       return api_ff_ids($type);
+       return api_ff_ids($type, Contact::FOLLOWER);
 }
 
 /// @TODO move to top of file or somewhere better