]> git.mxchange.org Git - friendica.git/commitdiff
Hopefully fixes notice "Undefined index: gravity"
authorMichael <heluecht@pirati.ca>
Tue, 16 Jun 2020 20:30:25 +0000 (20:30 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 16 Jun 2020 20:30:25 +0000 (20:30 +0000)
src/Model/Contact.php

index c46b15b943af7ee9f7104ce2804519c7f573fba0..04cece5359ac2d3064eeceee77f542e24d0969e5 100644 (file)
@@ -843,6 +843,7 @@ class Contact
                        // create an unfollow slap
                        $item = [];
                        $item['verb'] = Activity::O_UNFOLLOW;
+                       $item['gravity'] = GRAVITY_ACTIVITY;
                        $item['follow'] = $contact["url"];
                        $item['body'] = '';
                        $item['title'] = '';
@@ -2470,6 +2471,7 @@ class Contact
                                // create a follow slap
                                $item = [];
                                $item['verb'] = Activity::FOLLOW;
+                               $item['gravity'] = GRAVITY_ACTIVITY;
                                $item['follow'] = $contact["url"];
                                $item['body'] = '';
                                $item['title'] = '';