Avoid "Undefined index: verb"

This commit is contained in:
Michael 2021-02-01 10:57:25 +00:00
parent 8c9346fc12
commit c62d93cfe8

View file

@ -1059,7 +1059,7 @@ class Item
$update_commented = in_array($item['gravity'], [GRAVITY_PARENT, GRAVITY_COMMENT]);
} else {
// Update when it isn't a follow or tag verb
$update_commented = !in_array($item['verb'], [Activity::FOLLOW, Activity::TAG]);
$update_commented = !in_array($item['verb'] ?? '', [Activity::FOLLOW, Activity::TAG]);
}
if ($update_commented) {