{
try {
$att = Attention::getByKeys(['notice_id'=>$notice->getID(), 'profile_id'=>$target->getID()]);
- throw new AlreadyFulfilledException('Attention already exists with reason: '.var_export($att->reason,true));
+ throw new AlreadyFulfilledException('Attention already exists with reason: '._ve($att->reason));
} catch (NoResultException $e) {
$att = new Attention();
throw new Exception('Failed Attention::saveNew for notice id=='.$notice->getID().' target id=='.$target->getID().', reason=="'.$reason.'"');
}
}
+ self::blow('attention:stream:%d', $target->getID());
return $att;
}
}
}
$att = Attention::saveNew($this, $target, $reason);
-
- self::blow('reply:stream:%d', $target->getID());
return true;
}