aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorDM42.Net (Matt Dent) <dentm42@dm42.net>2018-12-14 09:55:27 -0500
committerDM42.Net (Matt Dent) <dentm42@dm42.net>2018-12-14 09:55:27 -0500
commit3f06a857c27344263d4a361e367738e85fc30af6 (patch)
tree631a1f42a5bd547c6e0556c16f672e72917c3da5 /Zotlabs/Module
parentf81a3ba45d50c0a0e4da68c17aba73425058e23d (diff)
downloadvolse-hubzilla-3f06a857c27344263d4a361e367738e85fc30af6.tar.gz
volse-hubzilla-3f06a857c27344263d4a361e367738e85fc30af6.tar.bz2
volse-hubzilla-3f06a857c27344263d4a361e367738e85fc30af6.zip
ARTICLES MODULE: Default to local_channel() user when no argv(1) is passed.
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Articles.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/Zotlabs/Module/Articles.php b/Zotlabs/Module/Articles.php
index 58c16be45..bc6c00483 100644
--- a/Zotlabs/Module/Articles.php
+++ b/Zotlabs/Module/Articles.php
@@ -17,8 +17,14 @@ class Articles extends Controller {
if(argc() > 1)
$which = argv(1);
- else
- return;
+
+ if(! $which) {
+ if(local_channel()) {
+ $channel = App::get_channel();
+ if($channel && $channel['channel_address'])
+ $which = $channel['channel_address'];
+ }
+ }
profile_load($which);