aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.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/item.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/item.php')
-rw-r--r--mod/item.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/mod/item.php b/mod/item.php
index e983b63ef..f4024f83c 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -26,12 +26,12 @@ function item_post(&$a) {
// This will change. Figure out who the observer is and whether or not
// they have permission to post here. Else ignore the post.
- if((! local_user()) && (! remote_user()) && (! x($_REQUEST,'commenter')))
+ if((! local_channel()) && (! remote_channel()) && (! x($_REQUEST,'commenter')))
return;
require_once('include/security.php');
- $uid = local_user();
+ $uid = local_channel();
$channel = null;
$observer = null;
@@ -635,11 +635,10 @@ function item_post(&$a) {
}
}
- $item_unseen = ((local_user() != $profile_uid) ? 1 : 0);
+ $item_unseen = ((local_channel() != $profile_uid) ? 1 : 0);
$item_wall = (($post_type === 'wall' || $post_type === 'wall-comment') ? 1 : 0);
$item_origin = (($origin) ? 1 : 0);
-
if($moderated)
$item_restrict = $item_restrict | ITEM_MODERATED;
@@ -897,7 +896,7 @@ function item_post(&$a) {
function item_content(&$a) {
- if((! local_user()) && (! remote_user()))
+ if((! local_channel()) && (! remote_channel()))
return;
require_once('include/security.php');
@@ -912,7 +911,7 @@ function item_content(&$a) {
if($i) {
$can_delete = false;
$local_delete = false;
- if(local_user() && local_user() == $i[0]['uid'])
+ if(local_channel() && local_channel() == $i[0]['uid'])
$local_delete = true;
$ob_hash = get_observer_hash();