fix a couple of typos from last commit

This commit is contained in:
Mike Macgirvin 2024-06-19 06:20:56 +10:00
parent 0c170bd1f6
commit c8e2430bba
2 changed files with 2 additions and 2 deletions

View file

@ -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'))) {

View file

@ -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);