*
* @param string $body
*
- * @return converted body
+ * @return string converted body
*/
private static function convertMentions($body)
{
* @param array $attachments
* @param array $item
*
- * @return item array
+ * @return array array
*/
private static function constructAttachList($attachments, $item)
{
/**
* Updates a message
*
- * @param array $activity Activity array
+ * @param array $activity Activity array
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function updateItem($activity)
{
/**
* Prepares data for a message
*
- * @param array $activity Activity array
+ * @param array $activity Activity array
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws \ImagickException
*/
public static function createItem($activity)
{
* Delete items
*
* @param array $activity
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws \ImagickException
*/
public static function deleteItem($activity)
{
*
* @param array $activity Activity array
* @param string $verb Activity verb
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws \ImagickException
*/
public static function createActivity($activity, $verb)
{
*
* @param array $activity Activity array
* @param array $item
+ * @throws \Exception
*/
public static function createEvent($activity, $item)
{
/**
* Creates an item post
*
- * @param array $activity Activity data
- * @param array $item item array
+ * @param array $activity Activity data
+ * @param array $item item array
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws \ImagickException
*/
private static function postItem($activity, $item)
{
*
* @param $url
* @param $child
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
private static function fetchMissingActivity($url, $child)
{
* perform a "follow" request
*
* @param array $activity
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws \ImagickException
*/
public static function followUser($activity)
{
* Update the given profile
*
* @param array $activity
+ * @throws \Exception
*/
public static function updatePerson($activity)
{
* Delete the given profile
*
* @param array $activity
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function deletePerson($activity)
{
* Accept a follow request
*
* @param array $activity
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws \ImagickException
*/
public static function acceptFollowUser($activity)
{
* Reject a follow request
*
* @param array $activity
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws \ImagickException
*/
public static function rejectFollowUser($activity)
{
* Undo activity like "like" or "dislike"
*
* @param array $activity
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws \ImagickException
*/
public static function undoActivity($activity)
{
* Activity to remove a follower
*
* @param array $activity
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws \ImagickException
*/
public static function undoFollowUser($activity)
{
* Switches a contact to AP if needed
*
* @param integer $cid Contact ID
+ * @throws \Exception
*/
private static function switchContact($cid)
{