aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
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;
}