we need channel_id here not the whole channel

This commit is contained in:
Mario Vavti 2017-01-19 10:02:26 +01:00
parent 5ce96b9b95
commit 4295b1945e
2 changed files with 2 additions and 2 deletions

View File

@ -196,4 +196,4 @@ class NativeWiki {
return array('read' => true, 'write' => $write, 'success' => true);
}
}
}
}

View File

@ -313,7 +313,7 @@ class Wiki extends \Zotlabs\Web\Controller {
if((argc() > 2) && (argv(2) === 'preview')) {
$content = $_POST['content'];
$resource_id = $_POST['resource_id'];
$w = Zlib\NativeWiki::get_wiki($owner,$observer_hash,$resource_id);
$w = Zlib\NativeWiki::get_wiki($owner['channel_id'],$observer_hash,$resource_id);
$wikiURL = argv(0) . '/' . argv(1) . '/' . $w['urlName'];