From: Evan Prodromou Date: Wed, 23 Mar 2011 18:24:07 +0000 (-0400) Subject: don't send group private message mail notification to the author X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dc73cf0b059c40ca18f6dc3f842228095cf34b6f;p=quix0rs-gnu-social.git don't send group private message mail notification to the author --- diff --git a/plugins/GroupPrivateMessage/Group_message_profile.php b/plugins/GroupPrivateMessage/Group_message_profile.php index c5832a9294..3214fba5b3 100644 --- a/plugins/GroupPrivateMessage/Group_message_profile.php +++ b/plugins/GroupPrivateMessage/Group_message_profile.php @@ -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; }