From: Michael Date: Tue, 16 Jun 2020 20:30:25 +0000 (+0000) Subject: Hopefully fixes notice "Undefined index: gravity" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8707ced2f7710c1e4d60ac6ad1be3e567f2f3875;p=friendica.git Hopefully fixes notice "Undefined index: gravity" --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index c46b15b943..04cece5359 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -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'] = '';