aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-04 01:04:05 -0700
committerfriendica <info@friendica.com>2013-08-04 01:04:05 -0700
commit6e2386553399b2c36a380531e6e3cb898a45a5b9 (patch)
treedbc25a8b622f0e9bff9dabfec8c62242fc8cdde5
parente6a8bb211c44550f2d235b6f795d67ef3d781111 (diff)
downloadvolse-hubzilla-6e2386553399b2c36a380531e6e3cb898a45a5b9.tar.gz
volse-hubzilla-6e2386553399b2c36a380531e6e3cb898a45a5b9.tar.bz2
volse-hubzilla-6e2386553399b2c36a380531e6e3cb898a45a5b9.zip
$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.
-rw-r--r--mod/channel.php13
-rw-r--r--version.inc2
2 files changed, 11 insertions, 4 deletions
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;
}
diff --git a/version.inc b/version.inc
index 381f47501..cc85744dc 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2013-08-03.394
+2013-08-04.395