aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-17 03:10:19 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-17 03:10:19 -0700
commita50947a4bc3f779df8fa4e6777bc025fcefc8d21 (patch)
tree2196406c0c64494f5a4b604c695db6bbcd81897d /include/poller.php
parentc5031139ebb46ce4994d3bd62059ae4eaba71359 (diff)
downloadvolse-hubzilla-a50947a4bc3f779df8fa4e6777bc025fcefc8d21.tar.gz
volse-hubzilla-a50947a4bc3f779df8fa4e6777bc025fcefc8d21.tar.bz2
volse-hubzilla-a50947a4bc3f779df8fa4e6777bc025fcefc8d21.zip
like, dislike, activity streams, etc.
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/poller.php b/include/poller.php
index 6024b1844..f116a5622 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -348,6 +348,11 @@
$datarray['parent-uri'] = $parent_uri;
$datarray['uid'] = $importer['uid'];
$datarray['contact-id'] = $contact['id'];
+ if(($datarray['verb'] == ACTIVITY_LIKE) || ($datarray['verb'] == ACTIVITY_DISLIKE)) {
+ $datarray['type'] = 'activity';
+ $datarray['gravity'] = GRAVITY_LIKE;
+ }
+
$r = item_store($datarray);
continue;
}