aboutsummaryrefslogtreecommitdiffstats
path: root/include/notifier.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-28 16:52:17 -0800
committerfriendica <info@friendica.com>2015-01-28 16:52:17 -0800
commit1ef2d1c5c405a5c9ab7f41a4fdefd295098b5ac8 (patch)
treeaf0d8d92c707c5cd89f16b14a2c8e7a1459c73c5 /include/notifier.php
parentda842da6839a8feeac4ef1084dce576de34fa874 (diff)
downloadvolse-hubzilla-1ef2d1c5c405a5c9ab7f41a4fdefd295098b5ac8.tar.gz
volse-hubzilla-1ef2d1c5c405a5c9ab7f41a4fdefd295098b5ac8.tar.bz2
volse-hubzilla-1ef2d1c5c405a5c9ab7f41a4fdefd295098b5ac8.zip
updates to put rating info into the local xlink before sending it to known directory servers
Diffstat (limited to 'include/notifier.php')
-rw-r--r--include/notifier.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/notifier.php b/include/notifier.php
index 06ef7bc94..edb2f1946 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -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