diff options
author | friendica <info@friendica.com> | 2013-02-18 15:15:55 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-18 15:15:55 -0800 |
commit | 65912ec0bfb112fd3dca4a8823bb834a1b1c80fc (patch) | |
tree | 4d4e6f6386bb85617b4a4f58133b5eaecc23d1ff /mod/post.php | |
parent | a21e6cffa184d78b6214a0306e2d2a7bbfc8ddb1 (diff) | |
download | volse-hubzilla-65912ec0bfb112fd3dca4a8823bb834a1b1c80fc.tar.gz volse-hubzilla-65912ec0bfb112fd3dca4a8823bb834a1b1c80fc.tar.bz2 volse-hubzilla-65912ec0bfb112fd3dca4a8823bb834a1b1c80fc.zip |
moving on
Diffstat (limited to 'mod/post.php')
-rw-r--r-- | mod/post.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mod/post.php b/mod/post.php index b7c16ff9a..e5fa1a418 100644 --- a/mod/post.php +++ b/mod/post.php @@ -236,6 +236,31 @@ function post_post(&$a) { if(array_key_exists('recipients',$data)) $recipients = $data['recipients']; + + if($msgtype === 'purge') { + if($recipients) { + // basically this means "unfriend" + foreach($recipients as $recip) { + + + + } + + + } + else { + // basically this means the channel has committed suicide + $arr = $data['sender']; + $sender_hash = base64url_encode(hash('whirlpool',$arr['guid'] . $arr['guid_sig'], true)); + + require_once('include/Contact.php'); + remove_all_xchan_resources($sender_hash); + + $ret['result'] = true; + json_return_and_die($ret); + + } + } if($msgtype === 'refresh') { // remote channel info (such as permissions or photo or something) |