Changed:
- moved constants GRAVITY_* from boot.php to Friendica\Model\Item
This commit is contained in:
parent
d267e7f0b7
commit
346ad9a3e2
|
@ -919,7 +919,7 @@ function pumpio_dolike(App $a, int $uid, array $self, $post, string $own_id, $th
|
||||||
$likedata = [];
|
$likedata = [];
|
||||||
$likedata['parent'] = $orig_post['id'];
|
$likedata['parent'] = $orig_post['id'];
|
||||||
$likedata['verb'] = Activity::LIKE;
|
$likedata['verb'] = Activity::LIKE;
|
||||||
$likedata['gravity'] = GRAVITY_ACTIVITY;
|
$likedata['gravity'] = Item::GRAVITY_ACTIVITY;
|
||||||
$likedata['uid'] = $uid;
|
$likedata['uid'] = $uid;
|
||||||
$likedata['wall'] = 0;
|
$likedata['wall'] = 0;
|
||||||
$likedata['network'] = Protocol::PUMPIO;
|
$likedata['network'] = Protocol::PUMPIO;
|
||||||
|
|
|
@ -1827,7 +1827,7 @@ function twitter_createpost(App $a, int $uid, $post, array $self, $create_user,
|
||||||
|
|
||||||
$item = Post::selectFirst(['uri'], ['uri' => $thr_parent, 'uid' => $uid]);
|
$item = Post::selectFirst(['uri'], ['uri' => $thr_parent, 'uid' => $uid]);
|
||||||
if (!DBA::isResult($item)) {
|
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)) {
|
if (DBA::isResult($item)) {
|
||||||
|
@ -1948,7 +1948,7 @@ function twitter_createpost(App $a, int $uid, $post, array $self, $create_user,
|
||||||
|
|
||||||
// CHange the other post into a reshare activity
|
// CHange the other post into a reshare activity
|
||||||
$postarray['verb'] = Activity::ANNOUNCE;
|
$postarray['verb'] = Activity::ANNOUNCE;
|
||||||
$postarray['gravity'] = GRAVITY_ACTIVITY;
|
$postarray['gravity'] = Item::GRAVITY_ACTIVITY;
|
||||||
$postarray['object-type'] = Activity\ObjectType::NOTE;
|
$postarray['object-type'] = Activity\ObjectType::NOTE;
|
||||||
|
|
||||||
$postarray['thr-parent'] = $retweet['uri'];
|
$postarray['thr-parent'] = $retweet['uri'];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user