aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module')
-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;