aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-02 20:13:07 -0800
committerfriendica <info@friendica.com>2015-02-02 20:13:07 -0800
commit1807db6cb0cc297aff32750b371a4e2e6539ad31 (patch)
treed8045e14bfa0ddf0760a8ac90a284fdd9eb4ca10 /mod
parentfa710106e5f97744e43a61a7e9ef5a1b993261ee (diff)
downloadvolse-hubzilla-1807db6cb0cc297aff32750b371a4e2e6539ad31.tar.gz
volse-hubzilla-1807db6cb0cc297aff32750b371a4e2e6539ad31.tar.bz2
volse-hubzilla-1807db6cb0cc297aff32750b371a4e2e6539ad31.zip
send rating information to directories
Diffstat (limited to 'mod')
-rw-r--r--mod/connedit.php6
-rw-r--r--mod/prate.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/mod/connedit.php b/mod/connedit.php
index 93cf1b09a..79c7e6a4f 100644
--- a/mod/connedit.php
+++ b/mod/connedit.php
@@ -117,7 +117,7 @@ function connedit_post(&$a) {
if($rating > 10)
$rating = 10;
- $rating_text = escape_tags($_REQUEST['rating_text']);
+ $rating_text = trim(escape_tags($_REQUEST['rating_text']));
$abook_my_perms = 0;
@@ -132,7 +132,7 @@ function connedit_post(&$a) {
if(! $is_self) {
- $signed = $target . '.' . $rating . '.' . $rating_text;
+ $signed = $orig_record[0]['abook_xchan'] . '.' . $rating . '.' . $rating_text;
$sig = base64url_encode(rsa_sign($signed,$channel['channel_prvkey']));
@@ -170,7 +170,7 @@ function connedit_post(&$a) {
$record = $z[0]['xlink_id'];
}
if($record) {
- proc_run('php','include/notifier.php','rating',$record);
+ proc_run('php','include/ratenotif.php','rating',$record);
}
}
diff --git a/mod/prate.php b/mod/prate.php
index 00de8b6fc..30de97927 100644
--- a/mod/prate.php
+++ b/mod/prate.php
@@ -60,7 +60,7 @@ function prate_post(&$a) {
$record = $z[0]['xlink_id'];
}
if($record) {
- proc_run('php','include/notifier.php','rating',$record);
+ 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",