mirror of
https://github.com/friendica/friendica
synced 2025-04-23 07:50:12 +00:00
Combine getFollowers and getFollowing into getContacts in ActivityPub\Transmitter
This commit is contained in:
parent
f4083f6031
commit
ccb69414d2
3 changed files with 19 additions and 65 deletions
|
@ -22,8 +22,8 @@
|
|||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Protocol\ActivityPub;
|
||||
|
||||
|
@ -49,10 +49,10 @@ class Following extends BaseModule
|
|||
|
||||
$page = $_REQUEST['page'] ?? null;
|
||||
|
||||
$Following = ActivityPub\Transmitter::getFollowing($owner, $page);
|
||||
$following = ActivityPub\Transmitter::getContacts($owner, [Contact::SHARING, Contact::FRIEND], 'following', $page);
|
||||
|
||||
header('Content-Type: application/activity+json');
|
||||
echo json_encode($Following);
|
||||
echo json_encode($following);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue