aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-04-29 07:35:22 +0000
committerMario <mario@mariovavti.com>2021-04-29 07:35:22 +0000
commitcf87a5af3b90723748e9976d5340fb2174c1a198 (patch)
tree05170c9d3cf6e0f9c6b0c0e78ec9e8755e603cdc
parent207057c92d6646aedeb86ee334b52f5b712013a3 (diff)
downloadvolse-hubzilla-cf87a5af3b90723748e9976d5340fb2174c1a198.tar.gz
volse-hubzilla-cf87a5af3b90723748e9976d5340fb2174c1a198.tar.bz2
volse-hubzilla-cf87a5af3b90723748e9976d5340fb2174c1a198.zip
fix typos in Activity::follow()
-rw-r--r--Zotlabs/Lib/Activity.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 82e74fc83..e036c7b1e 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -1360,16 +1360,14 @@ class Activity {
case 'Join':
// A second Follow request, but we haven't approved the first one
-
if ($contact['abook_pending']) {
return;
}
// We've already approved them or followed them first
// Send an Accept back to them
-
set_abconfig($channel['channel_id'], $person_obj['id'], 'pubcrawl', 'their_follow_id', $their_follow_id);
- Master::Summon(['Notifier', 'permissions_accept', $contact['abook_id']]);
+ Master::Summon(['Notifier', 'permission_accept', $contact['abook_id']]);
return;
case 'Accept':
@@ -1471,9 +1469,9 @@ class Activity {
if ($my_perms && $automatic) {
// send an Accept for this Follow activity
- Master::Summon(['Notifier', 'permissions_accept', $new_connection[0]['abook_id']]);
+ Master::Summon(['Notifier', 'permission_accept', $new_connection[0]['abook_id']]);
// Send back a Follow notification to them
- Master::Summon(['Notifier', 'permissions_create', $new_connection[0]['abook_id']]);
+ Master::Summon(['Notifier', 'permission_create', $new_connection[0]['abook_id']]);
}
$clone = [];