Merge pull request #10422 from annando/forum-delivery

Ensure public forum posts are public
This commit is contained in:
Hypolite Petovan 2021-06-23 08:18:43 -04:00 committed by GitHub
commit e6238990d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -443,6 +443,13 @@ function item_post(App $a) {
$postopts = '';
}
if (!$private_forum) {
$str_contact_allow = '';
$str_group_allow = '';
$str_contact_deny = '';
$str_group_deny = '';
}
if ($private_forum || !APContact::getByURL($forum_contact['url'])) {
$str_group_allow = '';
$str_contact_deny = '';