aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-08 17:47:56 -0800
committerzotlabs <mike@macgirvin.com>2016-11-08 17:47:56 -0800
commitdb3d230ad9a63ac9363fc3f3a658f8b6c3c5eab4 (patch)
treebcc0e456d5b9b47df31058844b1273f419ac459b /Zotlabs
parentfabf278633b40999640f9bfbb2523c14f42cb1fb (diff)
downloadvolse-hubzilla-db3d230ad9a63ac9363fc3f3a658f8b6c3c5eab4.tar.gz
volse-hubzilla-db3d230ad9a63ac9363fc3f3a658f8b6c3c5eab4.tar.bz2
volse-hubzilla-db3d230ad9a63ac9363fc3f3a658f8b6c3c5eab4.zip
more api work
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Wall_upload.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/Zotlabs/Module/Wall_upload.php b/Zotlabs/Module/Wall_upload.php
index 3868cb14e..46ebe13b1 100644
--- a/Zotlabs/Module/Wall_upload.php
+++ b/Zotlabs/Module/Wall_upload.php
@@ -17,16 +17,14 @@ class Wall_upload extends \Zotlabs\Web\Controller {
if($using_api) {
require_once('include/api.php');
- $user_info = api_get_user($a);
- $nick = $user_info['screen_name'];
+ if(api_user())
+ $channel = channelx_by_n(api_user());
}
else {
if(argc() > 1)
- $nick = argv(1);
+ $channel = get_channel_by_nick(argv(1));
}
- $channel = (($nick) ? get_channel_by_nick($nick) : false);
-
if(! $channel) {
if($using_api)
return;