]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't send smses to sender
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 5 Jun 2009 17:07:26 +0000 (10:07 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 5 Jun 2009 17:07:26 +0000 (10:07 -0700)
lib/mail.php

index 27a1d99dcbbd93e80b43e7d815ee27ba3091fe31..4e1f1dbb1d71ccee1d9407c591ae0c135de637c2 100644 (file)
@@ -335,6 +335,7 @@ function mail_broadcast_notice_sms($notice)
                  "FROM $UT JOIN subscription " .
                  "ON $UT.id = subscription.subscriber " .
                  'WHERE subscription.subscribed = ' . $notice->profile_id . ' ' .
+                 'AND subscription.subscribed != subscription.subscriber ' .
                  "AND $UT.smsemail IS NOT null " .
                  "AND $UT.smsnotify = 1 " .
                  'AND subscription.sms = 1 ');