diff options
author | mrjive <mrjive@mrjive.it> | 2016-02-03 22:46:54 +0100 |
---|---|---|
committer | mrjive <mrjive@mrjive.it> | 2016-02-03 22:46:54 +0100 |
commit | e527a52f6a123b695775a24fdeb64d0a5ab00df9 (patch) | |
tree | 7f72feb65e8f8790d6d80f631d1e608bfed1dd48 /include/taxonomy.php | |
parent | 337735094b944fd31ed96e36c869227a0d63e5d1 (diff) | |
parent | a7ed50ecd4b4defbc1d5fdf0bb4fd7d65d08a0fd (diff) | |
download | volse-hubzilla-e527a52f6a123b695775a24fdeb64d0a5ab00df9.tar.gz volse-hubzilla-e527a52f6a123b695775a24fdeb64d0a5ab00df9.tar.bz2 volse-hubzilla-e527a52f6a123b695775a24fdeb64d0a5ab00df9.zip |
Merge pull request #21 from redmatrix/master
updating from original codebase
Diffstat (limited to 'include/taxonomy.php')
-rw-r--r-- | include/taxonomy.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php index 0bf89a7c1..5ef106938 100644 --- a/include/taxonomy.php +++ b/include/taxonomy.php @@ -398,16 +398,17 @@ function get_things($profile_hash,$uid) { $things[$k] = null; foreach($r as $rr) { - $l = q("select xchan_name, xchan_url from likes left join xchan on likee = xchan_hash where + $l = q("select xchan_name, xchan_photo_s, xchan_url from likes left join xchan on likee = xchan_hash where target_type = '%s' and target_id = '%s' and channel_id = %d", dbesc(ACTIVITY_OBJ_THING), dbesc($rr['obj_obj']), intval($uid) ); - for($x = 0; $x < count($l); $x ++) + for($x = 0; $x < count($l); $x ++) { $l[$x]['xchan_url'] = zid($l[$x]['xchan_url']); - + $l[$x]['xchan_photo_s'] = zid($l[$x]['xchan_photo_s']); + } if(! $things[$rr['obj_verb']]) $things[$rr['obj_verb']] = array(); |