]> git.mxchange.org Git - friendica.git/commitdiff
Another renamed function
authorMichael <heluecht@pirati.ca>
Wed, 3 Oct 2018 15:50:21 +0000 (15:50 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 3 Oct 2018 15:50:21 +0000 (15:50 +0000)
mod/profile.php
src/Protocol/ActivityPub/Transmitter.php

index 729f11028a099a443c47b0940662d0ce1cb437dd..5b306b20fb03ad1f92dc4df09b2cb53718b269e5 100644 (file)
@@ -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();
index c3bc2eeb74ba466316010f82e4da772697852226..c4a90996d8a09825c246ccd045336467e84ccd56 100644 (file)
@@ -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' => []];