aboutsummaryrefslogtreecommitdiffstats
path: root/mod/prate.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-03 18:10:55 -0800
committerfriendica <info@friendica.com>2015-02-03 18:10:55 -0800
commit17ffe122b309610208d769f0e2b41f53fcf9d254 (patch)
treeb21e6080c586418a5327c5a50c9bf69538cf2c6c /mod/prate.php
parent5cb2f55dbbe715219dd18c60345e341ed478a753 (diff)
downloadvolse-hubzilla-17ffe122b309610208d769f0e2b41f53fcf9d254.tar.gz
volse-hubzilla-17ffe122b309610208d769f0e2b41f53fcf9d254.tar.bz2
volse-hubzilla-17ffe122b309610208d769f0e2b41f53fcf9d254.zip
ratings - mopping up, most everything but directory sync implemented
Diffstat (limited to 'mod/prate.php')
-rw-r--r--mod/prate.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/mod/prate.php b/mod/prate.php
index 25d279a5b..62f188891 100644
--- a/mod/prate.php
+++ b/mod/prate.php
@@ -3,11 +3,6 @@
function prate_post(&$a) {
-logger('request: ' . print_r($_REQUEST,true));
-return;
-
-
-
if(! local_channel())
return;
@@ -68,28 +63,6 @@ return;
proc_run('php','include/ratenotif.php','rating',$record);
}
- $x = q("select abook_id from abook where abook_xchan = '%s' and abook_channel = %d limit 1",
- dbesc($target),
- intval($local_channel())
- );
- if($x) {
- $w = q("update abook set abook_rating = %d, abook_rating_text = '%s' where abook_xchan = '%s' and abook_channel = %d",
- intval($rating),
- dbesc($rating_text),
- dbesc($target),
- intval(local_channel())
- );
- $x = q("select * from abook where abook_xchan = '%s' and abook_channel = %d limit 1",
- dbesc($target),
- intval($local_channel())
- );
- if($x) {
- unset($x[0]['abook_id']);
- unset($x[0]['abook_account']);
- unset($x[0]['abook_channel']);
- build_sync_packet(0, array('abook' => array($x[0])));
- }
- }
return;
}