aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-25 03:57:10 -0800
committerFriendika <info@friendika.com>2011-01-25 03:57:10 -0800
commit5a7ff660c4eabb989e5993cbf03bfe6786622bce (patch)
tree8a99da8b8cd96678628091eb0f912bbd7fa609aa /include/items.php
parentb0ab3e468b5c20cfe369ff282b7906d1690a3510 (diff)
downloadvolse-hubzilla-5a7ff660c4eabb989e5993cbf03bfe6786622bce.tar.gz
volse-hubzilla-5a7ff660c4eabb989e5993cbf03bfe6786622bce.tar.bz2
volse-hubzilla-5a7ff660c4eabb989e5993cbf03bfe6786622bce.zip
"unfriend" protocol
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index cbe0e970d..b6a588800 100644
--- a/include/items.php
+++ b/include/items.php
@@ -756,7 +756,7 @@ function get_item_contact($item,$contacts) {
}
-function dfrn_deliver($owner,$contact,$atom) {
+function dfrn_deliver($owner,$contact,$atom, $dissolve = false) {
$a = get_app();
@@ -827,6 +827,8 @@ function dfrn_deliver($owner,$contact,$atom) {
$postvars['dfrn_id'] = $idtosend;
$postvars['dfrn_version'] = DFRN_PROTOCOL_VERSION;
+ if($dissolve)
+ $postvars['dissolve'] = '1';
if(($contact['rel']) && ($contact['rel'] != REL_FAN) && (! $contact['blocked']) && (! $contact['readonly'])) {
$postvars['data'] = $atom;
@@ -838,7 +840,7 @@ function dfrn_deliver($owner,$contact,$atom) {
$postvars['data'] = str_replace('<dfrn:comment-allow>1','<dfrn:comment-allow>0',$atom);
}
- if($rino && $rino_allowed) {
+ if($rino && $rino_allowed && (! $dissolve)) {
$key = substr(random_string(),0,16);
$data = bin2hex(aes_encrypt($postvars['data'],$key));
$postvars['data'] = $data;