mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
improved "friendship accepted" emails enumerating what has
changed in the relationship and what you can do now.
This commit is contained in:
parent
9a03834cef
commit
e583ba0bff
3 changed files with 44 additions and 18 deletions
|
@ -164,7 +164,9 @@ function dfrn_confirm_post(&$a) {
|
||||||
);
|
);
|
||||||
if((count($r)) && ($r[0]['notify-flags'] & NOTIFY_CONFIRM)) {
|
if((count($r)) && ($r[0]['notify-flags'] & NOTIFY_CONFIRM)) {
|
||||||
|
|
||||||
$tpl = file_get_contents('view/intro_complete_eml.tpl');
|
$tpl = (($new_relation == $REL_BUD)
|
||||||
|
? file_get_contents('view/friend_complete_eml.tpl');
|
||||||
|
: file_get_contents('view/intro_complete_eml.tpl'));
|
||||||
|
|
||||||
$email_tpl = replace_macros($tpl, array(
|
$email_tpl = replace_macros($tpl, array(
|
||||||
'$sitename' => $a->config['sitename'],
|
'$sitename' => $a->config['sitename'],
|
||||||
|
@ -176,7 +178,7 @@ function dfrn_confirm_post(&$a) {
|
||||||
'$uid' => $newuid )
|
'$uid' => $newuid )
|
||||||
);
|
);
|
||||||
|
|
||||||
$res = mail($r[0]['email'], t("Introduction accepted at ") . $a->config['sitename'],
|
$res = mail($r[0]['email'], t("Connection accepted at ") . $a->config['sitename'],
|
||||||
$email_tpl, 'From: ' . t('Administrator') . '@' . $_SERVER[SERVER_NAME] );
|
$email_tpl, 'From: ' . t('Administrator') . '@' . $_SERVER[SERVER_NAME] );
|
||||||
if(!$res) {
|
if(!$res) {
|
||||||
notice( t("Email notification failed.") . EOL );
|
notice( t("Email notification failed.") . EOL );
|
||||||
|
|
22
view/friend_complete_eml.tpl
Normal file
22
view/friend_complete_eml.tpl
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
|
||||||
|
Dear $username,
|
||||||
|
|
||||||
|
Great news... '$fn' at '$dfrn_url' has accepted
|
||||||
|
your connection request at '$sitename'.
|
||||||
|
|
||||||
|
You are now mutual friends and may exchange status updates, photos, and email
|
||||||
|
without restriction.
|
||||||
|
|
||||||
|
Please visit your 'Contacts' page at $sitename if you wish to make
|
||||||
|
any changes to this relationship.
|
||||||
|
|
||||||
|
$siteurl
|
||||||
|
|
||||||
|
[For instance, you may create a separate profile with information that is not
|
||||||
|
available to the general public - and assign viewing rights to '$fn'].
|
||||||
|
|
||||||
|
Sincerely,
|
||||||
|
|
||||||
|
$sitename Administrator
|
||||||
|
|
||||||
|
|
|
@ -1,28 +1,30 @@
|
||||||
|
|
||||||
Dear $username,
|
Dear $username,
|
||||||
|
|
||||||
An approval was recently processed at $sitename for a personal
|
I've got good news and bad news... first the good news.
|
||||||
introduction you initiated.
|
'$fn' at '$dfrn_url' has accepted your connection request at
|
||||||
|
'$sitename'.
|
||||||
|
|
||||||
You are now connected to '$fn' at '$dfrn_url'.
|
The bad news is that '$fn' did not make you a "full friend",
|
||||||
|
but rather accepted you as a "fan". [Maybe you were expecting this,
|
||||||
|
maybe not.]
|
||||||
|
|
||||||
Your access privileges to this profile MAY have been elevated. Please
|
What this means is that '$fn' can communicate with you at any
|
||||||
view their profile from within your $sitename "Contacts" page going
|
time and comment on your activities, but your communications to
|
||||||
forward. Should you visit the URL without going through $sitename,
|
'$fn' may be restricted. In particular, you do NOT have the
|
||||||
you will only see this person's public profile.
|
ability to exchange private mail. You are only able to communicate
|
||||||
|
with '$fn' via your own status updates.
|
||||||
|
|
||||||
At $sitename, "relationships" are allowed to be one sided. Be advised
|
In the future, '$fn' MAY decide to seek a full connection and make
|
||||||
that your communications with this person may be partially limited
|
a reciprocal request. If you approve such a request, you will then be
|
||||||
if they do not request (and you accept) a reciprocal relationship.
|
considered mutual friends with full communication ability.
|
||||||
|
|
||||||
You may now send them directed messages, and you also may have the
|
The network at $sitename allows many types of relationships -
|
||||||
ability to receive non-public status messages and view otherwise
|
as opposed to older social networks where friendship is either
|
||||||
hidden profiles. Should this turn into a mutual relationship you
|
"yes" or "no" - with nothing in between.
|
||||||
will both have this level of access.
|
|
||||||
|
|
||||||
|
$siteurl
|
||||||
|
|
||||||
Sincerely,
|
Sincerely,
|
||||||
|
|
||||||
$sitename Administrator
|
$sitename Administrator
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue