aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/items.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 41bb3cff7..9ef44e147 100644
--- a/include/items.php
+++ b/include/items.php
@@ -361,7 +361,7 @@ function can_comment_on_post($observer_xchan, $item) {
case 'specific':
case 'contacts':
case '':
- if(local_channel() && get_abconfig(local_channel(), (($item['verb'] === ACTIVITY_SHARE) ? $item['source_xchan'] : $item['owner_xchan']), 'their_perms', 'post_comments')) {
+ if(local_channel() && get_abconfig(local_channel(), $item['owner_xchan'], 'their_perms', 'post_comments')) {
return true;
}
if(intval($item['item_wall']) && perm_is_allowed($item['uid'],$observer_xchan,'post_comments')) {
@@ -4034,7 +4034,6 @@ function find_related($item) {
if (! $allRelated) {
return false;
}
-
if ($item['verb'] === 'Add' && $item['tgt_type'] === 'Collection') {
$thisItem = json_decode($item['obj'],true);
if (is_array($thisItem)) {