aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Connedit.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-19 13:25:34 -0700
committerzotlabs <mike@macgirvin.com>2017-09-19 13:25:34 -0700
commitbced63e8237329ddaa6a5271589cbba50bd31448 (patch)
treed34ce952b15993a6f3f9067f6f3a0831e681023d /Zotlabs/Module/Connedit.php
parent4500faf463e7fd6fcf9948666421c941a1292df9 (diff)
downloadvolse-hubzilla-bced63e8237329ddaa6a5271589cbba50bd31448.tar.gz
volse-hubzilla-bced63e8237329ddaa6a5271589cbba50bd31448.tar.bz2
volse-hubzilla-bced63e8237329ddaa6a5271589cbba50bd31448.zip
call the follow_accept hook when desired
Diffstat (limited to 'Zotlabs/Module/Connedit.php')
-rw-r--r--Zotlabs/Module/Connedit.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php
index 0f18b432d..23c5282e3 100644
--- a/Zotlabs/Module/Connedit.php
+++ b/Zotlabs/Module/Connedit.php
@@ -248,6 +248,10 @@ class Connedit extends \Zotlabs\Web\Controller {
notice( t('Failed to update connection record.') . EOL);
if(! intval(\App::$poi['abook_self'])) {
+ if($new_friend) {
+ \Zotlabs\Daemon\Master::Summon( [ 'Notifier', 'permission_accept', $contact_id ] );
+ }
+
\Zotlabs\Daemon\Master::Summon( [
'Notifier',
(($new_friend) ? 'permission_create' : 'permission_update'),