aboutsummaryrefslogtreecommitdiffstats
path: root/mod/poke.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/poke.php')
-rwxr-xr-xmod/poke.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/poke.php b/mod/poke.php
index b22f7d9d5..6257a2821 100755
--- a/mod/poke.php
+++ b/mod/poke.php
@@ -18,10 +18,10 @@ require_once('include/items.php');
function poke_init(&$a) {
- if(! local_user())
+ if(! local_channel())
return;
- $uid = local_user();
+ $uid = local_channel();
$channel = $a->get_channel();
$verb = notags(trim($_REQUEST['verb']));
@@ -124,7 +124,7 @@ function poke_init(&$a) {
function poke_content(&$a) {
- if(! local_user()) {
+ if(! local_channel()) {
notice( t('Permission denied.') . EOL);
return;
}
@@ -136,7 +136,7 @@ function poke_content(&$a) {
$r = q("select abook_id, xchan_name from abook left join xchan on abook_xchan = xchan_hash
where abook_id = %d and abook_channel = %d limit 1",
intval($_REQUEST['c']),
- intval(local_user())
+ intval(local_channel())
);
if($r) {
$name = $r[0]['xchan_name'];