From 78a7e130ae7f5e5bca1fa51a49000ae3ef7a16f5 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 3 Oct 2018 15:50:21 +0000 Subject: [PATCH] Another renamed function --- mod/profile.php | 2 +- src/Protocol/ActivityPub/Transmitter.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/profile.php b/mod/profile.php index 729f11028a..5b306b20fb 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -53,7 +53,7 @@ function profile_init(App $a) if (ActivityPub::isRequest()) { $user = DBA::selectFirst('user', ['uid'], ['nickname' => $which]); if (DBA::isResult($user)) { - $data = ActivityPub\Transmitter::profile($user['uid']); + $data = ActivityPub\Transmitter::getProfile($user['uid']); echo json_encode($data); header('Content-Type: application/activity+json'); exit(); diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index c3bc2eeb74..c4a90996d8 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -187,7 +187,7 @@ class Transmitter * @param integer $uid User ID * @return profile array */ - public static function profile($uid) + public static function getProfile($uid) { $condition = ['uid' => $uid, 'blocked' => false, 'account_expired' => false, 'account_removed' => false, 'verified' => true]; @@ -722,7 +722,7 @@ class Transmitter 'id' => System::baseUrl() . '/activity/' . System::createGUID(), 'type' => 'Update', 'actor' => $owner['url'], - 'object' => self::profile($uid), + 'object' => self::getProfile($uid), 'published' => DateTimeFormat::utcNow(DateTimeFormat::ATOM), 'to' => [$profile['followers']], 'cc' => []];