aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Articles.php
diff options
context:
space:
mode:
authorDM42.Net (Matt Dent) <dentm42@dm42.net>2018-12-14 14:55:27 +0000
committerMario <mario@mariovavti.com>2018-12-17 10:46:24 +0100
commit8323458da9896e440ded61cabf3fe0ce1a981341 (patch)
treeccbcb4aadef0caf3cf8151143259d60214e69330 /Zotlabs/Module/Articles.php
parentd7c7ff1c12b5d46c71a0aa2421a71b27d36f52d2 (diff)
downloadvolse-hubzilla-8323458da9896e440ded61cabf3fe0ce1a981341.tar.gz
volse-hubzilla-8323458da9896e440ded61cabf3fe0ce1a981341.tar.bz2
volse-hubzilla-8323458da9896e440ded61cabf3fe0ce1a981341.zip
ARTICLES MODULE: Default to local_channel() user when no argv(1) is passed.
(cherry picked from commit 3f06a857c27344263d4a361e367738e85fc30af6)
Diffstat (limited to 'Zotlabs/Module/Articles.php')
-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);