From c8e2430bba1701555430add860dc05ebd762edfd Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Wed, 19 Jun 2024 06:20:56 +1000 Subject: [PATCH] fix a couple of typos from last commit --- include/network.php | 2 +- src/Module/Connedit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/network.php b/include/network.php index 532727680..8836b1a9a 100644 --- a/include/network.php +++ b/include/network.php @@ -758,7 +758,7 @@ function discover_resource(string $resource, $protocol = '', $verify = true) } $results = linksByRel($webfinger['links'], 'self'); - if ($results && ((! $protocol) || (in_array(strtolower($protocol), ['activitypub', 'apnomadic'])) ) { + if ($results && ((! $protocol) || (in_array(strtolower($protocol), ['activitypub', 'apnomadic'])))) { foreach ($results as $link) { if (isset($link['type']) && isset($link['href']) && ($link['type'] === 'application/activity+json' || str_contains($link['type'], 'ld+json'))) { diff --git a/src/Module/Connedit.php b/src/Module/Connedit.php index 2f3975be3..95f800cbd 100644 --- a/src/Module/Connedit.php +++ b/src/Module/Connedit.php @@ -508,7 +508,7 @@ class Connedit extends Controller } if ($cmd === 'drop') { - if (in_array($orig_record['xchan_network'], ['activitypub', 'apnomadic'])) + if (in_array($orig_record['xchan_network'], ['activitypub', 'apnomadic'])) { ActivityPub::contact_remove(local_channel(), $orig_record); } contact_remove(local_channel(), $orig_record['abook_id'], true);