]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't send group private message mail notification to the author
authorEvan Prodromou <evan@status.net>
Wed, 23 Mar 2011 18:24:07 +0000 (14:24 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 23 Mar 2011 18:31:13 +0000 (14:31 -0400)
plugins/GroupPrivateMessage/Group_message_profile.php

index c5832a92941e253d63a6df45fd9f28912b890321..3214fba5b34776b970634173c3e2c19e64d74ac0 100644 (file)
@@ -127,7 +127,10 @@ class Group_message_profile extends Memcached_DataObject
 
         $gmp->insert();
 
-        $gmp->notify();
+        // If it's not for the author, send email notification
+        if ($gm->from_profile != $profile->id) {
+            $gmp->notify();
+        }
 
         return $gmp;
     }