aboutsummaryrefslogtreecommitdiffstats
path: root/mod/contactgroup.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/contactgroup.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/contactgroup.php')
-rw-r--r--mod/contactgroup.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/contactgroup.php b/mod/contactgroup.php
index 4515c4c4c..6138f9e19 100644
--- a/mod/contactgroup.php
+++ b/mod/contactgroup.php
@@ -4,14 +4,14 @@ require_once('include/group.php');
function contactgroup_content(&$a) {
- if(! local_user()) {
+ if(! local_channel()) {
killme();
}
if((argc() > 2) && (intval(argv(1))) && (argv(2))) {
$r = q("SELECT abook_xchan from abook where abook_xchan = '%s' and abook_channel = %d and not ( abook_flags & %d )>0 limit 1",
dbesc(base64url_decode(argv(2))),
- intval(local_user()),
+ intval(local_channel()),
intval(ABOOK_FLAG_SELF)
);
if($r)
@@ -22,7 +22,7 @@ function contactgroup_content(&$a) {
$r = q("SELECT * FROM `groups` WHERE `id` = %d AND `uid` = %d AND `deleted` = 0 LIMIT 1",
intval(argv(1)),
- intval(local_user())
+ intval(local_channel())
);
if(! $r) {
killme();
@@ -38,10 +38,10 @@ function contactgroup_content(&$a) {
if($change) {
if(in_array($change,$preselected)) {
- group_rmv_member(local_user(),$group['name'],$change);
+ group_rmv_member(local_channel(),$group['name'],$change);
}
else {
- group_add_member(local_user(),$group['name'],$change);
+ group_add_member(local_channel(),$group['name'],$change);
}
}
}