aboutsummaryrefslogtreecommitdiffstats
path: root/mod/poke.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-29 00:28:23 -0800
committerfriendica <info@friendica.com>2015-01-29 00:28:23 -0800
commitfd0b6c967fce4d8a82e9dad121ae7d8301d3f342 (patch)
tree5c37812ef7baeadc17fce088c4394d25f75b593c /mod/poke.php
parentc993ddd86ee25832e35e65333fa25b396e7aefdf (diff)
parent872b165eb2bb5d632a12f2d7e1a28e195c2d5348 (diff)
downloadvolse-hubzilla-fd0b6c967fce4d8a82e9dad121ae7d8301d3f342.tar.gz
volse-hubzilla-fd0b6c967fce4d8a82e9dad121ae7d8301d3f342.tar.bz2
volse-hubzilla-fd0b6c967fce4d8a82e9dad121ae7d8301d3f342.zip
Merge branch 'master' into pocorate
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'];