From 77fcdede9be4c16143ea06a98bc6c7d0b7d60838 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 5 Oct 2020 18:11:05 +0000 Subject: [PATCH] Fix tests --- src/Model/Item.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index f47e5feec..609535974 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1840,6 +1840,7 @@ class Item } $body = $item['body']; + $verb = $item['verb']; // We just remove everything that is content foreach (array_merge(self::CONTENT_FIELDLIST, self::MIXED_CONTENT_FIELDLIST) as $field) { @@ -1943,7 +1944,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($verb, [Activity::FOLLOW, Activity::TAG]); } if ($update_commented) {