aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-20 23:09:03 -0700
committerfriendica <info@friendica.com>2014-04-20 23:09:03 -0700
commit8c92a445b2036c2c02950b80c3dd296cc587f8b8 (patch)
tree07a9266b0aa76ae235a9751f19029ff3c507f3ab /mod
parent1f93dc054afc3d2af9b41a9643e38fcf2a26215c (diff)
downloadvolse-hubzilla-8c92a445b2036c2c02950b80c3dd296cc587f8b8.tar.gz
volse-hubzilla-8c92a445b2036c2c02950b80c3dd296cc587f8b8.tar.bz2
volse-hubzilla-8c92a445b2036c2c02950b80c3dd296cc587f8b8.zip
subthread is still borked (~75% Friendica code which has never been translated)- but ported a bit more
Diffstat (limited to 'mod')
-rwxr-xr-xmod/subthread.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/subthread.php b/mod/subthread.php
index 11b7236fb..a9d18621c 100755
--- a/mod/subthread.php
+++ b/mod/subthread.php
@@ -37,15 +37,15 @@ function subthread_content(&$a) {
$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
- $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
- intval($item['contact-id']),
+ $r = q("SELECT * FROM abook WHERE abook_xchan = '%s' AND uid = %d LIMIT 1",
+ intval($item['author_xchan']),
intval($item['uid'])
);
- if(! count($r))
+ if(! $r)
return;
- if(! $r[0]['self'])
+ if(! ($r[0]['abook_flags'] & ABOOK_FLAG_SELF))
$remote_owner = $r[0];
}