diff options
author | friendica <info@friendica.com> | 2015-01-28 20:56:04 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-28 20:56:04 -0800 |
commit | a4960360669daa0a0c842427185ce1ada3b4ab97 (patch) | |
tree | 53feb1009266a77ee5338cc49919e45cca4b5ca6 /mod/delegate.php | |
parent | 54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff) | |
download | volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.gz volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.bz2 volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.zip |
local_user => local_channel
Diffstat (limited to 'mod/delegate.php')
-rw-r--r-- | mod/delegate.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/delegate.php b/mod/delegate.php index c78898b7f..cc399b6e5 100644 --- a/mod/delegate.php +++ b/mod/delegate.php @@ -2,7 +2,7 @@ function delegate_content(&$a) { - if(! local_user()) { + if(! local_channel()) { notice( t('Permission denied.') . EOL); return; } @@ -22,13 +22,13 @@ function delegate_content(&$a) { ); if(count($r)) { $r = q("select id from contact where uid = %d and nurl = '%s' limit 1", - intval(local_user()), + intval(local_channel()), dbesc(normalise_link($a->get_baseurl() . '/channel/' . $r[0]['nickname'])) ); if(count($r)) { q("insert into manage ( uid, mid ) values ( %d , %d ) ", intval($a->argv[2]), - intval(local_user()) + intval(local_channel()) ); } } @@ -44,7 +44,7 @@ function delegate_content(&$a) { q("delete from manage where uid = %d and mid = %d", intval($a->argv[2]), - intval(local_user()) + intval(local_channel()) ); goaway($a->get_baseurl() . '/delegate'); @@ -66,7 +66,7 @@ function delegate_content(&$a) { // find everybody that currently has delegated management to this account/page $r = q("select * from user where uid in ( select uid from manage where mid = %d ) ", - intval(local_user()) + intval(local_channel()) ); if(count($r)) @@ -87,7 +87,7 @@ function delegate_content(&$a) { $r = q("select nurl from contact where substring_index(contact.nurl,'/',3) = '%s' and contact.uid = %d and contact.self = 0 and network = '%s' ", dbesc(normalise_link($a->get_baseurl())), - intval(local_user()), + intval(local_channel()), dbesc(NETWORK_DFRN) ); |