]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
You don't have to push objects as references
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 9 Oct 2015 13:45:23 +0000 (15:45 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 9 Oct 2015 13:45:23 +0000 (15:45 +0200)
lib/activityhandlerplugin.php

index c403e55a936f1fc9cf665594879647fbbe0a9907..8c5d0452642e0761c02007dd8718c5601bde5c2b 100644 (file)
@@ -436,14 +436,13 @@ abstract class ActivityHandlerPlugin extends Plugin
     /**
      * Handle object posted via AtomPub
      *
-     * @param Activity &$activity Activity that was posted
+     * @param Activity  $activity Activity that was posted
      * @param Profile   $scoped   Profile of user posting
      * @param Notice   &$notice   Resulting notice
      *
      * @return boolean hook value
      */
-    // FIXME: Make sure we can really do strong Notice typing with a $notice===null without having =null here
-    public function onStartAtomPubNewActivity(Activity &$activity, Profile $scoped, Notice &$notice)
+    public function onStartAtomPubNewActivity(Activity $activity, Profile $scoped, Notice &$notice=null)
     {
         if (!$this->isMyActivity($activity)) {
             return true;