don't allow removal of self contact

This commit is contained in:
Friendika
2011-08-19 05:20:30 -07:00
parent ef98c7e020
commit 9a52b15271
2 changed files with 4 additions and 3 deletions

View File

@@ -789,9 +789,10 @@ function diaspora_share($me,$contact) {
$myaddr = $me['nickname'] . '@' . substr($a->get_baseurl(), strpos($a->get_baseurl(),'://') + 3);
$theiraddr = $contact['addr'];
logger('diaspora_share: contact: ' . print_r($contact,true), LOGGER_DATA);
$tpl = get_markup_template('diaspora_share.tpl');
$msg = replace_macros($tpl, array(
'$sender' => myaddr,
'$sender' => $myaddr,
'$recipient' => $theiraddr
));