]> git.mxchange.org Git - friendica.git/commitdiff
Fix tests
authorMichael <heluecht@pirati.ca>
Mon, 5 Oct 2020 18:11:05 +0000 (18:11 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 5 Oct 2020 18:11:05 +0000 (18:11 +0000)
src/Model/Item.php

index f47e5feec0029a34cdb977658f549c003c1e04d0..609535974f501c2eb8af23e209a2be9af8d34627 100644 (file)
@@ -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) {