X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FAttention.php;h=d048187db2d62116a561f869ae54ec4053e55f37;hb=3d6e25ee5f78d4fc3e00335d39724694264bbd53;hp=5299a095aedfff50c4c9cae08f555a1cca154b96;hpb=c48871cf1b382d392b2b1759e70be23c305654f8;p=quix0rs-gnu-social.git diff --git a/classes/Attention.php b/classes/Attention.php index 5299a095ae..d048187db2 100644 --- a/classes/Attention.php +++ b/classes/Attention.php @@ -53,7 +53,7 @@ class Attention extends Managed_DataObject { 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(); @@ -67,6 +67,7 @@ class Attention extends Managed_DataObject 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; } }