aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index 86ed4fda8..756d22a39 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -168,8 +168,8 @@ function item_post(&$a) {
}
- $observer = $a->get_observer();
$channel = null;
+ $observer = null;
$dest_channel = ((array_key_exists('dest_channel',$_REQUEST) && intval($_REQUEST['dest_channel'])) ? intval($_REQUEST['dest_channel']) : 0);
@@ -183,10 +183,17 @@ function item_post(&$a) {
if($r) {
$channel = $r[0];
$profile_uid = $dest_channel;
+ $x = q("select * from xchan where xchan_hash = '%s' limit 1",
+ dbesc($channel['channel_hash'])
+ );
+ if($x)
+ $observer = $x[0];
}
}
+ if(! $observer)
+ $observer = $a->get_observer();
if($parent) {