deprecate/remove get_channel_by_nick() which is just a less generalised variant of channelx_by_nick()

This commit is contained in:
zotlabs
2016-11-08 18:15:57 -08:00
parent db3d230ad9
commit 74947d1c1c
6 changed files with 26 additions and 28 deletions

View File

@@ -14,13 +14,18 @@ class Wall_attach extends \Zotlabs\Web\Controller {
if(\App::$data['api_info'] && array_key_exists('media',$_FILES)) {
$using_api = true;
$user_info = \App::$data['api_info'];
$nick = $user_info['screen_name'];
$channel = get_channel_by_nick($user_info['screen_name']);
}
elseif(argc() > 1)
$channel = get_channel_by_nick(argv(1));
if($using_api) {
require_once('include/api.php');
if(api_user())
$channel = channelx_by_n(api_user());
}
else {
if(argc() > 1)
$channel = channelx_by_nick(argv(1));
}
if(! $channel)
killme();