aboutsummaryrefslogtreecommitdiffstats
path: root/mod/poke.php
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 /mod/poke.php
parent54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff)
downloadvolse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.gz
volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.bz2
volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.zip
local_user => local_channel
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'];