From a4960360669daa0a0c842427185ce1ada3b4ab97 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 28 Jan 2015 20:56:04 -0800 Subject: local_user => local_channel --- mod/poke.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod/poke.php') 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']; -- cgit v1.2.3