]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Diaspora.php
Private forums are now working via ActivityPub
[friendica.git] / src / Protocol / Diaspora.php
index 45879df2aef340a08a4ccfc8afa022ac79be35a5..aba79364f406ab41eccaffd256c77ea436f4c39a 100644 (file)
@@ -859,7 +859,7 @@ class Diaspora
                        // Yes, then it is fine.
                        return true;
                        // Is it a post to a community?
-               } elseif (($contact["rel"] == Contact::FOLLOWER) && in_array($importer["page-flags"], [User::PAGE_FLAGS_COMMUNITY, User::PAGE_FLAGS_PRVGROUP])) {
+               } elseif (($contact["rel"] == Contact::FOLLOWER) && ($importer['account-type'] == User::ACCOUNT_TYPE_COMMUNITY)) {
                        // That's good
                        return true;
                        // Is the message a global user or a comment?