mirror of
https://github.com/friendica/friendica
synced 2024-11-19 17:03:41 +00:00
Avoid "Undefined index: verb"
This commit is contained in:
parent
8c9346fc12
commit
c62d93cfe8
1 changed files with 1 additions and 1 deletions
|
@ -1059,7 +1059,7 @@ class Item
|
||||||
$update_commented = in_array($item['gravity'], [GRAVITY_PARENT, GRAVITY_COMMENT]);
|
$update_commented = in_array($item['gravity'], [GRAVITY_PARENT, GRAVITY_COMMENT]);
|
||||||
} else {
|
} else {
|
||||||
// Update when it isn't a follow or tag verb
|
// 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) {
|
if ($update_commented) {
|
||||||
|
|
Loading…
Reference in a new issue