From 67e64287afc6c41c80065614f7beebe8a552a76b Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 26 Jan 2022 19:28:04 +0000 Subject: missing define of variable, remove deprecated zot-info and ofeed from webfinger --- Zotlabs/Lib/Activity.php | 2 ++ Zotlabs/Module/Wfinger.php | 13 +------------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 3ba8339f6..33183de76 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2638,6 +2638,8 @@ class Activity { } } + $rawmsg = ''; + if (is_array($act->obj) && is_array($act->obj['attachment'])) { foreach($act->obj['attachment'] as $a) { if (isset($a['type']) && $a['type'] === 'PropertyValue' && diff --git a/Zotlabs/Module/Wfinger.php b/Zotlabs/Module/Wfinger.php index 43102f006..6d0e78587 100644 --- a/Zotlabs/Module/Wfinger.php +++ b/Zotlabs/Module/Wfinger.php @@ -126,7 +126,7 @@ class Wfinger extends \Zotlabs\Web\Controller { 'http://webfinger.net/ns/name' => $r['channel_name'], 'http://xmlns.com/foaf/0.1/name' => $r['channel_name'], 'https://w3id.org/security/v1#publicKeyPem' => $r['xchan_pubkey'], - 'http://purl.org/zot/federation' => 'zot6,zot' + 'http://purl.org/zot/federation' => 'zot6' ]; foreach($aliases as $alias) @@ -183,12 +183,6 @@ class Wfinger extends \Zotlabs\Web\Controller { 'href' => z_root() . '/profile/' . $r['channel_address'], ], - [ - 'rel' => 'http://schemas.google.com/g/2010#updates-from', - 'type' => 'application/atom+xml', - 'href' => z_root() . '/ofeed/' . $r['channel_address'] - ], - [ 'rel' => 'http://webfinger.net/rel/blog', 'href' => z_root() . '/channel/' . $r['channel_address'], @@ -205,11 +199,6 @@ class Wfinger extends \Zotlabs\Web\Controller { 'href' => channel_url($r) ], - [ - 'rel' => 'http://purl.org/zot/protocol', - 'href' => z_root() . '/.well-known/zot-info' . '?address=' . $r['xchan_addr'], - ], - [ 'rel' => 'http://purl.org/openwebauth/v1', 'type' => 'application/x-zot+json', -- cgit v1.2.3