From 6e2386553399b2c36a380531e6e3cb898a45a5b9 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 4 Aug 2013 01:04:05 -0700 Subject: $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. --- mod/channel.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'mod') diff --git a/mod/channel.php b/mod/channel.php index c7b631c96..aa158d330 100644 --- a/mod/channel.php +++ b/mod/channel.php @@ -2,11 +2,18 @@ function channel_init(&$a) { + $which = null; if(argc() > 1) $which = argv(1); - else { - notice( t('Requested profile is not available.') . EOL ); - $a->error = 404; + if(! $which) { + if(local_user()) { + $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; } -- cgit v1.2.3