aboutsummaryrefslogtreecommitdiffstats
path: root/mod/poke.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-29 15:09:35 -0800
committerfriendica <info@friendica.com>2015-01-29 15:09:35 -0800
commit912be23e1627211fb417c4b7bced414cbbe38ef0 (patch)
tree2b8567d800624167b3eadf37c8855deb0ba74b0b /mod/poke.php
parentff68ea608786a698ad46637ef13854ac1b1e6beb (diff)
parent872b165eb2bb5d632a12f2d7e1a28e195c2d5348 (diff)
downloadvolse-hubzilla-912be23e1627211fb417c4b7bced414cbbe38ef0.tar.gz
volse-hubzilla-912be23e1627211fb417c4b7bced414cbbe38ef0.tar.bz2
volse-hubzilla-912be23e1627211fb417c4b7bced414cbbe38ef0.zip
Merge branch 'master' into tres
Conflicts: include/group.php include/text.php mod/acl.php mod/channel.php mod/connections.php mod/display.php mod/group.php mod/item.php mod/locs.php mod/network.php mod/photos.php mod/ping.php mod/starred.php mod/viewsrc.php
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 9fde46f62..d0f60e853 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']));
@@ -128,7 +128,7 @@ function poke_init(&$a) {
function poke_content(&$a) {
- if(! local_user()) {
+ if(! local_channel()) {
notice( t('Permission denied.') . EOL);
return;
}
@@ -140,7 +140,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'];