]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Nothing interesting was made in this commit.
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 1 Mar 2016 15:30:00 +0000 (16:30 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 1 Mar 2016 15:30:00 +0000 (16:30 +0100)
classes/Attention.php
classes/Notice.php

index 5299a095aedfff50c4c9cae08f555a1cca154b96..d048187db2d62116a561f869ae54ec4053e55f37 100644 (file)
@@ -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;
     }
 }
index 6f406472c74378edfbf5f506d6f75e73bf9ab974..9bf22047472939a33c98586d937fa5f231ba65ba 100644 (file)
@@ -1647,8 +1647,6 @@ class Notice extends Managed_DataObject
         }
 
         $att = Attention::saveNew($this, $target, $reason);
-
-        self::blow('reply:stream:%d', $target->getID());
         return true;
     }