subthread is still borked (~75% Friendica code which has never been translated)- but ported a bit more
This commit is contained in:
parent
1f93dc054a
commit
8c92a445b2
@ -37,15 +37,15 @@ function subthread_content(&$a) {
|
|||||||
|
|
||||||
$remote_owner = null;
|
$remote_owner = null;
|
||||||
|
|
||||||
if(! $item['wall']) {
|
if(! ($item['item_flags'] & ITEM_WALL)) {
|
||||||
// The top level post may have been written by somebody on another system
|
// The top level post may have been written by somebody on another system
|
||||||
$r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
$r = q("SELECT * FROM abook WHERE abook_xchan = '%s' AND uid = %d LIMIT 1",
|
||||||
intval($item['contact-id']),
|
intval($item['author_xchan']),
|
||||||
intval($item['uid'])
|
intval($item['uid'])
|
||||||
);
|
);
|
||||||
if(! count($r))
|
if(! $r)
|
||||||
return;
|
return;
|
||||||
if(! $r[0]['self'])
|
if(! ($r[0]['abook_flags'] & ABOOK_FLAG_SELF))
|
||||||
$remote_owner = $r[0];
|
$remote_owner = $r[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user