App::get_channel() does not return the right channel if we are not looking at our own channel. fix issue #841

This commit is contained in:
git-marijus 2017-08-09 20:39:59 +02:00
parent 037e1edb1f
commit fa2de77abe

View File

@ -11,14 +11,8 @@ class Wiki_pages {
return;
if(! $arr['resource_id']) {
$c = \App::get_channel();
if(! $c)
$c = channelx_by_nick(argv(1));
$c = channelx_by_nick(argv(1));
$w = \Zotlabs\Lib\NativeWiki::exists_by_name($c['channel_id'],argv(2));
$arr = array(
'resource_id' => $w['resource_id'],
'channel_id' => $c['channel_id'],