sort out a couple of email notify issues
This commit is contained in:
parent
ce25042a84
commit
3710a6fd07
|
@ -419,7 +419,7 @@ function dfrn_notify_post(&$a) {
|
|||
'$email' => $importer['email'], // email address to send to
|
||||
'$url' => $datarray['author-link'], // full url for the site
|
||||
'$from' => $from, // name of the person sending the message
|
||||
'$body' => 'q1' .$msg['htmlversion'], // html version of the message
|
||||
'$body' => $msg['htmlversion'], // html version of the message
|
||||
'$display' => $a->get_baseurl() . '/display/' . $importer['nick'] . '/' . $posted_id,
|
||||
));
|
||||
|
||||
|
@ -504,7 +504,7 @@ function dfrn_notify_post(&$a) {
|
|||
$datarray['type'] = 'activity';
|
||||
$datarray['gravity'] = GRAVITY_LIKE;
|
||||
}
|
||||
$r = item_store($datarray);
|
||||
$posted_id = item_store($datarray);
|
||||
|
||||
// find out if our user is involved in this conversation and wants to be notified.
|
||||
|
||||
|
@ -544,11 +544,11 @@ function dfrn_notify_post(&$a) {
|
|||
$email_html_body_tpl = replace_macros($tpl,array(
|
||||
'$sitename' => $a->config['sitename'], // name of this site
|
||||
'$siteurl' => $a->get_baseurl(), // descriptive url of this site
|
||||
'$thumb' => $conv['author-avatar'], // thumbnail url for sender icon
|
||||
'$url' => $conv['author-link'], // full url for the site
|
||||
'$thumb' => $datarray['author-avatar'], // thumbnail url for sender icon
|
||||
'$url' => $datarray['author-link'], // full url for the site
|
||||
'$from' => $from, // name of the person sending the message
|
||||
'$body' => $msg['htmlversion'], // html version of the message
|
||||
'$display' => $a->get_baseurl() . '/display/' . $importer['nick'] . '/' . $posted_id,
|
||||
'$display' => $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $posted_id,
|
||||
));
|
||||
|
||||
// load the template for private message notifications
|
||||
|
@ -556,11 +556,11 @@ function dfrn_notify_post(&$a) {
|
|||
$email_text_body_tpl = replace_macros($tpl,array(
|
||||
'$sitename' => $a->config['sitename'], // name of this site
|
||||
'$siteurl' => $a->get_baseurl(), // descriptive url of this site
|
||||
'$thumb' => $conv['author-avatar'], // thumbnail url for sender icon
|
||||
'$url' => $conv['author-link'], // full url for the site
|
||||
'$thumb' => $datarray['author-avatar'], // thumbnail url for sender icon
|
||||
'$url' => $datarray['author-link'], // full url for the site
|
||||
'$from' => $from, // name of the person sending the message
|
||||
'$body' => $msg['textversion'], // text version of the message
|
||||
'$display' => $a->get_baseurl() . '/display/' . $importer['nick'] . '/' . $posted_id,
|
||||
'$display' => $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $posted_id,
|
||||
));
|
||||
|
||||
// use the EmailNotification library to send the message
|
||||
|
@ -570,7 +570,7 @@ function dfrn_notify_post(&$a) {
|
|||
t("Administrator@") . $a->get_hostname(),
|
||||
t("noreply") . '@' . $a->get_hostname(),
|
||||
$importer['email'],
|
||||
$from . t(" commented on an item at ") . $a->config['sitename'],
|
||||
sprintf( t('%s commented on an item at %s'), $from , $a->config['sitename']),
|
||||
$email_html_body_tpl,
|
||||
$email_text_body_tpl
|
||||
);
|
||||
|
|
14
mod/item.php
14
mod/item.php
|
@ -536,7 +536,7 @@ function item_post(&$a) {
|
|||
'$url' => $author['url'], // full url for the site
|
||||
'$from' => $from, // name of the person sending the message
|
||||
'$body' => $msg['htmlversion'], // html version of the message
|
||||
'$display' => $a->get_baseurl() . '/display/' . $author['nick'] . '/' . $post_id,
|
||||
'$display' => $a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $post_id,
|
||||
));
|
||||
|
||||
// load the template for private message notifications
|
||||
|
@ -546,10 +546,10 @@ function item_post(&$a) {
|
|||
'$siteurl' => $a->get_baseurl(), // descriptive url of this site
|
||||
'$thumb' => $author['thumb'], // thumbnail url for sender icon
|
||||
'$email' => $importer['email'], // email address to send to
|
||||
'$url' => $author['url'], // full url for the site
|
||||
'$url' => $author['url'], // profile url for the author
|
||||
'$from' => $from, // name of the person sending the message
|
||||
'$body' => $msg['textversion'], // text version of the message
|
||||
'$display' => $a->get_baseurl() . '/display/' . $author['nick'] . '/' . $post_id,
|
||||
'$display' => $a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $post_id,
|
||||
));
|
||||
|
||||
// use the EmailNotification library to send the message
|
||||
|
@ -559,7 +559,7 @@ function item_post(&$a) {
|
|||
t("Administrator@") . $a->get_hostname(),
|
||||
t("noreply") . '@' . $a->get_hostname(),
|
||||
$user['email'],
|
||||
$from . t(" commented on an item at ") . $a->config['sitename'],
|
||||
sprintf( t('%s commented on an item at %s'), $from , $a->config['sitename']),
|
||||
$email_html_body_tpl,
|
||||
$email_text_body_tpl
|
||||
);
|
||||
|
@ -601,7 +601,7 @@ function item_post(&$a) {
|
|||
'$url' => $author['url'], // full url for the site
|
||||
'$from' => $from, // name of the person sending the message
|
||||
'$body' => $msg['htmlversion'], // html version of the message
|
||||
'$display' => $a->get_baseurl() . '/display/' . $author['nick'] . '/' . $post_id,
|
||||
'$display' => $a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $post_id,
|
||||
));
|
||||
|
||||
// load the template for private message notifications
|
||||
|
@ -613,7 +613,7 @@ function item_post(&$a) {
|
|||
'$url' => $author['url'], // full url for the site
|
||||
'$from' => $from, // name of the person sending the message
|
||||
'$body' => $msg['textversion'], // text version of the message
|
||||
'$display' => $a->get_baseurl() . '/display/' . $author['nick'] . '/' . $post_id,
|
||||
'$display' => $a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $post_id,
|
||||
));
|
||||
|
||||
// use the EmailNotification library to send the message
|
||||
|
@ -623,7 +623,7 @@ function item_post(&$a) {
|
|||
t("Administrator@") . $a->get_hostname(),
|
||||
t("noreply") . '@' . $a->get_hostname(),
|
||||
$user['email'],
|
||||
$from . t(" commented on an item at ") . $a->config['sitename'],
|
||||
sprintf( t('%s posted to your profile wall at %s') , $from , $a->config['sitename']),
|
||||
$email_html_body_tpl,
|
||||
$email_text_body_tpl
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue