aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-03 01:42:28 -0800
committerfriendica <info@friendica.com>2013-01-03 01:42:28 -0800
commit1fc38311f9b99d3ceed910a74f7e169032c633c4 (patch)
tree19a9f40df207c40f3d39d2dbe4c23af5568616c9 /mod
parent1e7a5560f5a5887641d120e77f0f9993bf3b58b9 (diff)
downloadvolse-hubzilla-1fc38311f9b99d3ceed910a74f7e169032c633c4.tar.gz
volse-hubzilla-1fc38311f9b99d3ceed910a74f7e169032c633c4.tar.bz2
volse-hubzilla-1fc38311f9b99d3ceed910a74f7e169032c633c4.zip
fix item owner on conversations
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index b91563f45..0a2c34128 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -57,7 +57,7 @@ function item_post(&$a) {
// If you are unsure, it is prudent (and important) to leave it unset.
$origin = (($api_source && array_key_exists('origin',$_REQUEST)) ? intval($_REQUEST['origin']) : 1);
-
+ $owner_hash = null;
$profile_uid = ((x($_REQUEST,'profile_uid')) ? intval($_REQUEST['profile_uid']) : 0);
@@ -266,6 +266,7 @@ function item_post(&$a) {
$str_group_allow = $parent_item['allow_gid'];
$str_contact_deny = $parent_item['deny_cid'];
$str_group_deny = $parent_item['deny_gid'];
+ $owner_hash = $parent_item['owner_xchan'];
}
if(! strlen($body)) {
@@ -518,7 +519,7 @@ function item_post(&$a) {
$datarray['aid'] = $channel['channel_account_id'];
$datarray['uid'] = $profile_uid;
- $datarray['owner_xchan'] = $owner_xchan['xchan_hash'];
+ $datarray['owner_xchan'] = (($owner_hash) ? $owner_hash : $owner_xchan['xchan_hash']);
$datarray['author_xchan'] = $observer['xchan_hash'];
$datarray['created'] = datetime_convert();
$datarray['edited'] = datetime_convert();