support '@' paths

This commit is contained in:
zotlabs 2018-05-05 00:39:53 -07:00
parent 367937e479
commit c6e65ec6da
2 changed files with 3 additions and 2 deletions

View file

@ -109,7 +109,8 @@ class Wfinger extends \Zotlabs\Web\Controller {
$aliases = array(
z_root() . (($pchan) ? '/pchan/' : '/channel/') . $r[0]['channel_address'],
z_root() . '/~' . $r[0]['channel_address']
z_root() . '/~' . $r[0]['channel_address'],
z_root() . '/@' . $r[0]['channel_address']
);
if($h) {

View file

@ -886,7 +886,7 @@ class App {
// unix style "homedir"
if(substr(self::$cmd, 0, 1) === '~')
if((substr(self::$cmd, 0, 1) === '~') || (substr(self::$cmd, 0, 1) === '@'))
self::$cmd = 'channel/' . substr(self::$cmd, 1);
/*