aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Zot6/Receiver.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-27 17:42:28 +0000
committerMario <mario@mariovavti.com>2021-05-27 17:42:28 +0000
commit3eb1b9d168644ed4fd8bca5de8360c7ededbacfc (patch)
treec58c0bd88ae65d52dc36511550a7760cb4bed4ad /Zotlabs/Zot6/Receiver.php
parent2fb3d6ddf5e72b97fbbdfbc65cdaba90ff73d4b8 (diff)
downloadvolse-hubzilla-3eb1b9d168644ed4fd8bca5de8360c7ededbacfc.tar.gz
volse-hubzilla-3eb1b9d168644ed4fd8bca5de8360c7ededbacfc.tar.bz2
volse-hubzilla-3eb1b9d168644ed4fd8bca5de8360c7ededbacfc.zip
remove reply_message_request(), implement force_refresh and minor fixes
Diffstat (limited to 'Zotlabs/Zot6/Receiver.php')
-rw-r--r--Zotlabs/Zot6/Receiver.php18
1 files changed, 8 insertions, 10 deletions
diff --git a/Zotlabs/Zot6/Receiver.php b/Zotlabs/Zot6/Receiver.php
index 6440c5da5..964c61651 100644
--- a/Zotlabs/Zot6/Receiver.php
+++ b/Zotlabs/Zot6/Receiver.php
@@ -7,7 +7,6 @@ use Zotlabs\Lib\Crypto;
use Zotlabs\Lib\Libzot;
use Zotlabs\Web\HTTPSig;
-
class Receiver {
protected $data;
@@ -174,21 +173,20 @@ class Receiver {
function Dispatch() {
switch ($this->messagetype) {
-
- case 'request':
- $this->response = $this->handler->Request($this->data,$this->hub);
- break;
-
case 'purge':
- $this->response = $this->handler->Purge($this->sender,$this->recipients,$this->hub);
+ $this->response = $this->handler->Purge($this->sender, $this->recipients, $this->hub);
break;
case 'refresh':
- $this->response = $this->handler->Refresh($this->sender,$this->recipients,$this->hub);
+ $this->response = $this->handler->Refresh($this->sender, $this->recipients, $this->hub, false);
+ break;
+
+ case 'force_refresh':
+ $this->response = $this->handler->Refresh($this->sender, $this->recipients, $this->hub, true);
break;
case 'rekey':
- $this->response = $this->handler->Rekey($this->sender, $this->data,$this->hub);
+ $this->response = $this->handler->Rekey($this->sender, $this->data, $this->hub);
break;
case 'activity':
@@ -196,7 +194,7 @@ class Receiver {
case 'sync':
default:
if ($this->sender) {
- $this->response = $this->handler->Notify($this->data,$this->hub);
+ $this->response = $this->handler->Notify($this->data, $this->hub);
}
break;