aboutsummaryrefslogtreecommitdiffstats
path: root/mod/sharedwithme.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/sharedwithme.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/sharedwithme.php')
-rw-r--r--mod/sharedwithme.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/sharedwithme.php b/mod/sharedwithme.php
index 56cbc35ec..d91987027 100644
--- a/mod/sharedwithme.php
+++ b/mod/sharedwithme.php
@@ -3,20 +3,20 @@ require_once('include/conversation.php');
require_once('include/text.php');
function sharedwithme_content(&$a) {
- if(! local_user()) {
+ if(! local_channel()) {
notice( t('Permission denied.') . EOL);
return;
}
$channel = $a->get_channel();
- $is_owner = (local_user() && (local_user() == $channel['channel_id']));
+ $is_owner = (local_channel() && (local_channel() == $channel['channel_id']));
//maintenance - see if a file got dropped and remove it systemwide - this should possibly go to include/poller
$x = q("SELECT * FROM item WHERE verb = '%s' AND obj_type = '%s' AND uid = %d",
dbesc(ACTIVITY_UPDATE),
dbesc(ACTIVITY_OBJ_FILE),
- intval(local_user())
+ intval(local_channel())
);
if($x) {
@@ -47,7 +47,7 @@ function sharedwithme_content(&$a) {
q("DELETE FROM item WHERE id = %d AND uid = %d",
intval($id),
- intval(local_user())
+ intval(local_channel())
);
goaway(z_root() . '/sharedwithme');
@@ -59,7 +59,7 @@ function sharedwithme_content(&$a) {
q("DELETE FROM item WHERE verb = '%s' AND obj_type = '%s' AND uid = %d",
dbesc(ACTIVITY_POST),
dbesc(ACTIVITY_OBJ_FILE),
- intval(local_user())
+ intval(local_channel())
);
goaway(z_root() . '/sharedwithme');
@@ -69,7 +69,7 @@ function sharedwithme_content(&$a) {
$r = q("SELECT * FROM item WHERE verb = '%s' AND obj_type = '%s' AND uid = %d AND owner_xchan != '%s'",
dbesc(ACTIVITY_POST),
dbesc(ACTIVITY_OBJ_FILE),
- intval(local_user()),
+ intval(local_channel()),
dbesc($channel['channel_hash'])
);