mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:15:13 +00:00
fix a couple of typos from last commit
This commit is contained in:
parent
0c170bd1f6
commit
c8e2430bba
2 changed files with 2 additions and 2 deletions
|
@ -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'))) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue