aboutsummaryrefslogtreecommitdiffstats
path: root/util/fresh
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-28 20:56:04 -0800
committerfriendica <info@friendica.com>2015-01-28 20:56:04 -0800
commita4960360669daa0a0c842427185ce1ada3b4ab97 (patch)
tree53feb1009266a77ee5338cc49919e45cca4b5ca6 /util/fresh
parent54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff)
downloadvolse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.gz
volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.bz2
volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.zip
local_user => local_channel
Diffstat (limited to 'util/fresh')
-rwxr-xr-xutil/fresh8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/fresh b/util/fresh
index 7f96a319c..8bee5dff7 100755
--- a/util/fresh
+++ b/util/fresh
@@ -99,7 +99,7 @@ function process_command($line) {
}
break;
case 'channel':
- if(! local_user())
+ if(! local_channel())
echo 'Permission denied.';
if(argv(1)) {
$r = q("select * from channel where channel_address = '%s' and channel_account_id = %d limit 1",
@@ -116,7 +116,7 @@ function process_command($line) {
}
break;
case 'conn':
- if(! local_user()) {
+ if(! local_channel()) {
echo "Permission denied.";
break;
}
@@ -124,14 +124,14 @@ function process_command($line) {
for($x = 1; $x < argc(); $x ++) {
$r = q("select * from abook left join xchan on abook_xchan = xchan_hash where abook_id = %d and abook_channel = %d",
intval(argv($x)),
- intval(local_user())
+ intval(local_channel())
);
if($r) echo jindent(json_encode($r[0])) . "\n";
}
}
else {
$r = q("select * from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d order by abook_id",
- intval(local_user())
+ intval(local_channel())
);
if($r) {
foreach($r as $rr)