From e41809af890694082305779891f02334d58e686a Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 1 Mar 2016 16:30:00 +0100 Subject: [PATCH] Nothing interesting was made in this commit. --- classes/Attention.php | 3 ++- classes/Notice.php | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) 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; } -- 2.39.5