1
0
Fork 0

Hopefully fixes notice "Undefined index: gravity"

This commit is contained in:
Michael 2020-06-16 20:30:25 +00:00
parent 84c56c481a
commit 8707ced2f7

View 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'] = '';