sforkowany z mirror/friendica
Fix formatting and PHPDoc in ActivityPub\Processor
Add expected return value to postMail method2022.09-rc
rodzic
fb63274aaf
commit
9e24b8c55f
|
@ -442,8 +442,8 @@ class Processor
|
||||||
*
|
*
|
||||||
* @param array $activity Activity data
|
* @param array $activity Activity data
|
||||||
* @param array $item item array
|
* @param array $item item array
|
||||||
|
* @return int|bool New mail table row id or false on error
|
||||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||||
* @throws \ImagickException
|
|
||||||
*/
|
*/
|
||||||
private static function postMail($activity, $item)
|
private static function postMail($activity, $item)
|
||||||
{
|
{
|
||||||
|
@ -497,7 +497,7 @@ class Processor
|
||||||
}
|
}
|
||||||
$msg['body'] = $item['body'];
|
$msg['body'] = $item['body'];
|
||||||
|
|
||||||
Mail::insert($msg);
|
return Mail::insert($msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Ładowanie…
Reference in New Issue