aboutsummaryrefslogtreecommitdiffstats
path: root/include/socgraph.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-19 22:43:24 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-19 22:43:24 -0700
commite68a00d381925887009830b61bad03bba5fe0868 (patch)
treea5c9a7c4e38bfafec94db1102925b3676f28999b /include/socgraph.php
parent507dfb9f85bd0376901750f76f5978df3738f3e2 (diff)
downloadvolse-hubzilla-e68a00d381925887009830b61bad03bba5fe0868.tar.gz
volse-hubzilla-e68a00d381925887009830b61bad03bba5fe0868.tar.bz2
volse-hubzilla-e68a00d381925887009830b61bad03bba5fe0868.zip
more db structure
Diffstat (limited to 'include/socgraph.php')
-rw-r--r--include/socgraph.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/socgraph.php b/include/socgraph.php
index 3e8bcc19e..45ab9a366 100644
--- a/include/socgraph.php
+++ b/include/socgraph.php
@@ -40,7 +40,7 @@ function poco_load($xchan = '', $url = null) {
return;
}
- $url = $url . '?f=&fields=displayName,hash,urls,photos,rating' ;
+ $url = $url . '?f=&fields=displayName,hash,urls,photos' ;
logger('poco_load: ' . $url, LOGGER_DEBUG);
@@ -115,8 +115,6 @@ function poco_load($xchan = '', $url = null) {
$name = $entry['displayName'];
$hash = $entry['hash'];
- $rating = ((array_key_exists('rating',$entry) && (! is_array($entry['rating']))) ? intval($entry['rating']) : 0);
- $rating_text = ((array_key_exists('rating_text',$entry)) ? escape_tags($entry['rating_text']) :'');
if(x($entry,'urls') && is_array($entry['urls'])) {
foreach($entry['urls'] as $url) {
@@ -576,13 +574,6 @@ function poco($a,$extended = false) {
$entry['preferredUsername'] = substr($rr['xchan_addr'],0,strpos($rr['xchan_addr'],'@'));
if($fields_ret['photos'])
$entry['photos'] = array(array('value' => $rr['xchan_photo_l'], 'mimetype' => $rr['xchan_photo_mimetype'], 'type' => 'profile'));
- if($fields_ret['rating']) {
- $entry['rating'] = ((array_key_exists('abook_rating',$rr)) ? intval($rr['abook_rating']) : 0);
- $entry['rating_text'] = ((array_key_exists('abook_rating_text',$rr)) ? $rr['abook_rating_text'] : '');
- // maybe this should be a composite calculated rating in $system_mode
- if($system_mode)
- $entry['rating'] = 0;
- }
$ret['entry'][] = $entry;
}
}