updates to put rating info into the local xlink before sending it to known directory servers

This commit is contained in:
friendica
2015-01-28 16:52:17 -08:00
parent da842da683
commit 1ef2d1c5c4
2 changed files with 48 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ require_once('include/html2plain.php');
* relay item_id (item was relayed to owner, we will deliver it as owner)
* location channel_id
* request channel_id xchan_hash message_id
* rating xlink_id
*
*/
@@ -296,6 +297,15 @@ function notifier_run($argv, $argc){
$private = false;
$packet_type = 'purge';
}
elseif($cmd === 'rating') {
$r = q("select * from xlink where xlink_id = %d and xlink_static = 1 limit 1",
intval($item_id)
);
if($r) {
logger('rating message: ' . print_r($r[0],true));
return;
}
}
else {
// Normal items