]> git.mxchange.org Git - friendica-addons.git/commitdiff
Changed:
authorRoland Häder <roland@mxchange.org>
Mon, 12 Sep 2022 21:15:08 +0000 (23:15 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 18 Oct 2022 14:38:00 +0000 (16:38 +0200)
- moved constants GRAVITY_* from boot.php to Friendica\Model\Item

pumpio/pumpio.php
twitter/twitter.php

index 759b11fdec2fe49fb12febe504e8dee238380e22..470c1f273fe95bbdfb836d28d338e630a32c2b0a 100644 (file)
@@ -919,7 +919,7 @@ function pumpio_dolike(App $a, int $uid, array $self, $post, string $own_id, $th
        $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;
index d2847a1843cb7c2c578ea580ea42339b191705de..5f0d8c842ae281f4e9be5d5a5ace4858817e2f15 100644 (file)
@@ -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]);
                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)) {
@@ -1948,7 +1948,7 @@ function twitter_createpost(App $a, int $uid, $post, array $self, $create_user,
 
                        // 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'];