summaryrefslogtreecommitdiff
path: root/lib/mail.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-24 16:05:17 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-24 16:05:17 -0400
commit3fda5a684fcc6b718a8e5e908cd17477335ea071 (patch)
tree0b3231b0f2fe69aadc7878952673c00b0aff832b /lib/mail.php
parentbf5176a711986504fd73717eb9b0ce015f51bc3e (diff)
notify user of remote subscriptions
darcs-hash:20080824200517-84dde-9662d89dbcd948e3ef7b7f8d4e82d90b4891c684.gz
Diffstat (limited to 'lib/mail.php')
-rw-r--r--lib/mail.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mail.php b/lib/mail.php
index e6c7ee0e2..3dc1f61e2 100644
--- a/lib/mail.php
+++ b/lib/mail.php
@@ -109,9 +109,13 @@ function mail_confirm_address($code, $nickname, $address) {
}
function mail_subscribe_notify($listenee, $listener) {
+ $other = $listener->getProfile();
+ mail_subscribe_notify_profile($listenee, $other);
+}
+
+function mail_subscribe_notify_profile($listenee, $other) {
if ($listenee->email && $listenee->emailnotifysub) {
$profile = $listenee->getProfile();
- $other = $listener->getProfile();
$name = $profile->getBestName();
$long_name = ($other->fullname) ? ($other->fullname . ' (' . $other->nickname . ')') : $other->nickname;
$recipients = $listenee->email;