]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ensureProfile already done and stored in $this->oprofile
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 12 Jan 2015 01:01:26 +0000 (02:01 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 12 Jan 2015 01:01:26 +0000 (02:01 +0100)
plugins/OStatus/actions/groupsalmon.php
plugins/OStatus/lib/salmonaction.php

index 6ecefa7f7d53faf6419080af16474e4e51deaaa8..a255a3d022999d8d6bc67108a46bcee362eeaca5 100644 (file)
@@ -88,7 +88,6 @@ class GroupsalmonAction extends SalmonAction
             }
         }
 
-        $profile = $this->ensureProfile();
         $this->saveNotice();
     }
 
@@ -153,7 +152,6 @@ class GroupsalmonAction extends SalmonAction
      */
     function handleLeave()
     {
-        // ensureProfile throws exception on failure
         if ($this->oprofile->isGroup()) {
             // TRANS: Client error displayed when trying to have a group join another group.
             throw new AlreadyFulfilledException(_m('Groups cannot be members of groups'));
index ace5daf86a72e7143ecae262f9949ef661f648a1..eb3a62da322e936a4ac4b995618a6d4802f3b8da 100644 (file)
@@ -264,7 +264,6 @@ class SalmonAction extends Action
 
     function saveNotice()
     {
-        $oprofile = $this->ensureProfile();
-        return $oprofile->processPost($this->activity, 'salmon');
+        return $this->oprofile->processPost($this->activity, 'salmon');
     }
 }