Stronger typing and function access control in OStatus

This commit is contained in:
Mikael Nordfeldth
2014-05-05 19:06:22 +02:00
parent 30f4f5606c
commit bbada781b7
3 changed files with 7 additions and 8 deletions

View File

@@ -342,12 +342,13 @@ class Ostatus_profile extends Managed_DataObject
* @param Profile $actor
* @return boolean success
*/
public function notifyActivity($entry, $actor)
public function notifyActivity($entry, Profile $actor)
{
if ($this->salmonuri) {
$salmon = new Salmon();
return $salmon->post($this->salmonuri, $this->notifyPrepXml($entry), $actor);
}
common_debug(__CLASS__.' error: No salmonuri for Ostatus_profile uri: '.$this->uri);
return false;
}