$likedata = [];
$likedata['parent'] = $orig_post['id'];
$likedata['verb'] = Activity::LIKE;
- $likedata['gravity'] = GRAVITY_ACTIVITY;
+ $likedata['gravity'] = Item::GRAVITY_ACTIVITY;
$likedata['uid'] = $uid;
$likedata['wall'] = 0;
$likedata['network'] = Protocol::PUMPIO;
$item = Post::selectFirst(['uri'], ['uri' => $thr_parent, 'uid' => $uid]);
if (!DBA::isResult($item)) {
- $item = Post::selectFirst(['uri'], ['extid' => $thr_parent, 'uid' => $uid, 'gravity' => GRAVITY_COMMENT]);
+ $item = Post::selectFirst(['uri'], ['extid' => $thr_parent, 'uid' => $uid, 'gravity' => Item::GRAVITY_COMMENT]);
}
if (DBA::isResult($item)) {
// CHange the other post into a reshare activity
$postarray['verb'] = Activity::ANNOUNCE;
- $postarray['gravity'] = GRAVITY_ACTIVITY;
+ $postarray['gravity'] = Item::GRAVITY_ACTIVITY;
$postarray['object-type'] = Activity\ObjectType::NOTE;
$postarray['thr-parent'] = $retweet['uri'];