]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/actions/groupsalmon.php
Debugging log fix.
[quix0rs-gnu-social.git] / plugins / OStatus / actions / groupsalmon.php
index 6ecefa7f7d53faf6419080af16474e4e51deaaa8..921221498fbc2f0337aa6ab66e860847b5183c37 100644 (file)
@@ -88,8 +88,11 @@ class GroupsalmonAction extends SalmonAction
             }
         }
 
-        $profile = $this->ensureProfile();
-        $this->saveNotice();
+        try {
+            $this->saveNotice();
+        } catch (AlreadyFulfilledException $e) {
+            return;
+        }
     }
 
     /**
@@ -153,7 +156,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'));