From: Mikael Nordfeldth Date: Tue, 1 Mar 2016 15:30:00 +0000 (+0100) Subject: Nothing interesting was made in this commit. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e41809af890694082305779891f02334d58e686a;p=quix0rs-gnu-social.git Nothing interesting was made in this commit. --- 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; } } diff --git a/classes/Notice.php b/classes/Notice.php index 6f406472c7..9bf2204747 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1647,8 +1647,6 @@ class Notice extends Managed_DataObject } $att = Attention::saveNew($this, $target, $reason); - - self::blow('reply:stream:%d', $target->getID()); return true; }