this makes rpost to another channel work somewhat - but there are issues, since the ACL will belong to the wrong channel. Leaving disabled for now. I don't know that we can solve all the issues without a different design so this may end up in a plugin for those who are willing to put up with the shortcomings.
This commit is contained in:
parent
4901ef8faf
commit
8b0721cf35
@ -168,8 +168,8 @@ function item_post(&$a) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$observer = $a->get_observer();
|
|
||||||
$channel = null;
|
$channel = null;
|
||||||
|
$observer = null;
|
||||||
|
|
||||||
$dest_channel = ((array_key_exists('dest_channel',$_REQUEST) && intval($_REQUEST['dest_channel'])) ? intval($_REQUEST['dest_channel']) : 0);
|
$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) {
|
if($r) {
|
||||||
$channel = $r[0];
|
$channel = $r[0];
|
||||||
$profile_uid = $dest_channel;
|
$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) {
|
if($parent) {
|
||||||
|
Reference in New Issue
Block a user