]> git.mxchange.org Git - friendica.git/commitdiff
Remove unused function
authorMichael <heluecht@pirati.ca>
Wed, 4 Dec 2019 07:13:29 +0000 (07:13 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 4 Dec 2019 07:13:29 +0000 (07:13 +0000)
src/Protocol/ActivityPub/Transmitter.php

index 720fa09d7f4c61082b72d8d8a123849d6300c351..2be621cb93e9b09ec4c28b570880e32c6a14f1a9 100644 (file)
@@ -930,29 +930,6 @@ class Transmitter
                /// @todo Create "conversation" entry
        }
 
-       /**
-        * Creates an object array for a given item id
-        *
-        * @param integer $item_id
-        *
-        * @return array with the object data
-        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
-        * @throws \ImagickException
-        */
-       public static function createObjectFromItemID($item_id)
-       {
-               $item = Item::selectFirst([], ['id' => $item_id, 'parent-network' => Protocol::NATIVE_SUPPORT]);
-
-               if (!DBA::isResult($item)) {
-                       return false;
-               }
-
-               $data = ['@context' => ActivityPub::CONTEXT];
-               $data = array_merge($data, self::createNote($item));
-
-               return $data;
-       }
-
        /**
         * Creates a location entry for a given item array
         *