Remove unused function
This commit is contained in:
parent
d34052b332
commit
abed3ba906
|
@ -930,29 +930,6 @@ class Transmitter
|
||||||
/// @todo Create "conversation" entry
|
/// @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
|
* Creates a location entry for a given item array
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue