aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Item.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-20 23:04:07 -0700
committerredmatrix <git@macgirvin.com>2016-07-20 23:04:07 -0700
commitda707736a075e8f050458316edfcf0177aef0bfc (patch)
tree6f4adc41a64c8b112b780a1392e942e07226675b /Zotlabs/Module/Item.php
parent0c3543ac43d552dbaee597df41c8b7ea2d650e04 (diff)
downloadvolse-hubzilla-da707736a075e8f050458316edfcf0177aef0bfc.tar.gz
volse-hubzilla-da707736a075e8f050458316edfcf0177aef0bfc.tar.bz2
volse-hubzilla-da707736a075e8f050458316edfcf0177aef0bfc.zip
issue #453 and a bug noted from the logfiles related to the schema change last month
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r--Zotlabs/Module/Item.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index f0cb82286..2d0c1ba02 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -183,7 +183,9 @@ class Item extends \Zotlabs\Web\Controller {
}
// can_comment_on_post() needs info from the following xchan_query
- xchan_query($r);
+ // This may be from the discover tab which means we need to correct the effective uid
+
+ xchan_query($r,true,(($r[0]['uid'] == local_channel()) ? 0 : local_channel()));
$parent_item = $r[0];
$parent = $r[0]['id'];