forked from GNUsocial/gnu-social
notify user of remote subscriptions
darcs-hash:20080824200517-84dde-9662d89dbcd948e3ef7b7f8d4e82d90b4891c684.gz
This commit is contained in:
parent
bf5176a711
commit
3fda5a684f
@ -181,6 +181,10 @@ class FinishremotesubscribeAction extends Action {
|
||||
return;
|
||||
}
|
||||
|
||||
# Notify user, if necessary
|
||||
|
||||
mail_subscribe_notify_profile($user, $profile);
|
||||
|
||||
# Clear the data
|
||||
unset($_SESSION['oauth_authorization_request']);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user