$yoursite/~foo has taken you to foo's channel page for ages. If you're logged in locally, $yoursite/~ will now take you to *your* channel page. If you aren't logged in, it won't.

This commit is contained in:
friendica 2013-08-04 01:04:05 -07:00
parent e6a8bb211c
commit 6e23865533
2 changed files with 11 additions and 4 deletions

View File

@ -2,11 +2,18 @@
function channel_init(&$a) { function channel_init(&$a) {
$which = null;
if(argc() > 1) if(argc() > 1)
$which = argv(1); $which = argv(1);
else { if(! $which) {
notice( t('Requested profile is not available.') . EOL ); if(local_user()) {
$a->error = 404; $channel = $a->get_channel();
if($channel && $channel['channel_address'])
$which = $channel['channel_address'];
}
}
if(! $which) {
notice( t('You must be logged in to see this page.') . EOL );
return; return;
} }

View File

@ -1 +1 @@
2013-08-03.394 2013-08-04.395