partial solution for obj|tgt multiple (zot and zot6) encodings; the zot6 version will be stored under $item['obj']['asld']

This commit is contained in:
zotlabs
2018-12-03 20:09:57 -08:00
parent ffc3dba682
commit 42aeb19562
3 changed files with 12 additions and 0 deletions

View File

@@ -43,6 +43,9 @@ class Wfinger extends \Zotlabs\Web\Controller {
if(strpos($resource,'acct:') === 0) {
$channel = str_replace('acct:','',$resource);
if(substr($channel,0,1) === '@' && strpos(substr($channel,1),'@')) {
$channel = substr($channel,1);
}
if(strpos($channel,'@') !== false) {
$host = substr($channel,strpos($channel,'@')+1);