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