send rating information to directories

This commit is contained in:
friendica
2015-02-02 20:13:07 -08:00
parent fa710106e5
commit 1807db6cb0
5 changed files with 157 additions and 28 deletions

View File

@@ -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);
}
}