Merge branch 'patch-20181214a' into 'dev'
ARTICLES MODULE: Default to local_channel() user when no argv(1) is passed. See merge request hubzilla/core!1427
This commit is contained in:
commit
6c72c3d4a5
@ -17,8 +17,16 @@ class Articles extends Controller {
|
|||||||
|
|
||||||
if(argc() > 1)
|
if(argc() > 1)
|
||||||
$which = argv(1);
|
$which = argv(1);
|
||||||
else
|
|
||||||
return;
|
if(! $which) {
|
||||||
|
if(local_channel()) {
|
||||||
|
$channel = App::get_channel();
|
||||||
|
if($channel && $channel['channel_address'])
|
||||||
|
$which = $channel['channel_address'];
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
profile_load($which);
|
profile_load($which);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user