]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
Issue 6282: Update the contact data regularly (including the network)
[friendica.git] / src / Model / Item.php
index ca6556d275e6325d3d68463e9bf0d8b87591e3ad..95256219a1888166e3a613140542a42f1d6d12c9 100644 (file)
@@ -2370,7 +2370,7 @@ class Item extends BaseObject
                $update = (!$arr['private'] && ((defaults($arr, 'author-link', '') === defaults($arr, 'owner-link', '')) || ($arr["parent-uri"] === $arr["uri"])));
 
                // Is it a forum? Then we don't care about the rules from above
-               if (!$update && ($arr["network"] == Protocol::DFRN) && ($arr["parent-uri"] === $arr["uri"])) {
+               if (!$update && in_array($arr["network"], [Protocol::ACTIVITYPUB, Protocol::DFRN]) && ($arr["parent-uri"] === $arr["uri"])) {
                        if (DBA::exists('contact', ['id' => $arr['contact-id'], 'forum' => true])) {
                                $update = true;
                        }