mirror of
https://github.com/friendica/friendica
synced 2025-05-25 03:44:13 +02:00
Use "account-type" instead of "page-flags"
This commit is contained in:
parent
ce762b4154
commit
b857c26999
6 changed files with 14 additions and 17 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue