add display link to notify emails

This commit is contained in:
Friendika 2010-11-04 20:58:08 -07:00
parent 4cba826a2f
commit 71ae08d506
4 changed files with 10 additions and 2 deletions

View file

@ -262,6 +262,7 @@ function dfrn_notify_post(&$a) {
'$siteurl' => $a->get_baseurl(), '$siteurl' => $a->get_baseurl(),
'$username' => $importer['username'], '$username' => $importer['username'],
'$email' => $importer['email'], '$email' => $importer['email'],
'$display' => $a->get_baseurl() . '/display/' . $posted_id,
'$from' => $from, '$from' => $from,
'$body' => strip_tags(bbcode(stripslashes($datarray['body']))) '$body' => strip_tags(bbcode(stripslashes($datarray['body'])))
)); ));
@ -329,6 +330,7 @@ function dfrn_notify_post(&$a) {
'$username' => $importer['username'], '$username' => $importer['username'],
'$email' => $importer['email'], '$email' => $importer['email'],
'$from' => $from, '$from' => $from,
'$display' => $a->get_baseurl() . '/display' . $r,
'$body' => strip_tags(bbcode(stripslashes($datarray['body']))) '$body' => strip_tags(bbcode(stripslashes($datarray['body'])))
)); ));

View file

@ -251,6 +251,7 @@ function item_post(&$a) {
'$username' => $user['username'], '$username' => $user['username'],
'$email' => $user['email'], '$email' => $user['email'],
'$from' => $from, '$from' => $from,
'$display' => $a->get_baseurl() . '/display/' . $post_id,
'$body' => strip_tags(bbcode($body)) '$body' => strip_tags(bbcode($body))
)); ));
@ -273,6 +274,7 @@ function item_post(&$a) {
'$username' => $user['username'], '$username' => $user['username'],
'$email' => $user['email'], '$email' => $user['email'],
'$from' => $from, '$from' => $from,
'$display' => $a->get_baseurl() . '/display/' . $post_id,
'$body' => strip_tags(bbcode($body)) '$body' => strip_tags(bbcode($body))
)); ));

View file

@ -7,7 +7,9 @@ Dear $username,
$body $body
----- -----
Please login at $siteurl to view the complete conversation. Please login at $siteurl to view the complete conversation:
$display
Thank you, Thank you,
$sitename administrator $sitename administrator

View file

@ -7,7 +7,9 @@ Dear $username,
$body $body
----- -----
Please login at $siteurl to view or delete the item. Please login at $siteurl to view or delete the item:
$display
Thank you, Thank you,
$sitename administrator $sitename administrator