[TheFreeNetwork][fix_duplicates.php] Don't die because you couldn't federate an undo follow
This commit is contained in:
@@ -710,7 +710,7 @@ class OStatusPlugin extends Plugin
|
||||
* @param Profile $profile subscriber
|
||||
* @param Profile $other subscribee
|
||||
*
|
||||
* @return hook return code
|
||||
* @return bool hook return code
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
@@ -735,7 +735,7 @@ class OStatusPlugin extends Plugin
|
||||
* @param Profile $profile subscriber
|
||||
* @param Profile $other subscribee
|
||||
*
|
||||
* @return hook return code
|
||||
* @return bool hook return code
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
|
@@ -385,7 +385,7 @@ class Ostatus_profile extends Managed_DataObject
|
||||
*
|
||||
* @param mixed $entry XML string, Notice, or Activity
|
||||
* @param Profile $actor
|
||||
* @return boolean success
|
||||
* @return bool success
|
||||
*/
|
||||
public function notifyActivity($entry, Profile $actor)
|
||||
{
|
||||
|
@@ -43,11 +43,16 @@ class Salmon
|
||||
*
|
||||
* @param string $endpoint_uri
|
||||
* @param string $xml string representation of payload
|
||||
* @param Profile $user profile whose keys we sign with (must be a local user)
|
||||
* @return boolean success
|
||||
* @param Profile $actor profile whose keys we sign with (must be a local user)
|
||||
* @param Profile|null $target
|
||||
* @return bool success
|
||||
*/
|
||||
public static function post($endpoint_uri, $xml, Profile $actor, Profile $target=null)
|
||||
{
|
||||
public static function post(
|
||||
$endpoint_uri,
|
||||
$xml,
|
||||
Profile $actor,
|
||||
?Profile $target = null
|
||||
) {
|
||||
if (empty($endpoint_uri)) {
|
||||
common_debug('No endpoint URI for Salmon post to '.$actor->getUri());
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user