Merge pull request #4168 from annando/comment-dfrn

Commenting to (nearly) every Friendica contact is now possible
This commit is contained in:
Hypolite Petovan 2018-01-04 15:12:07 -05:00 committed by GitHub
commit 58d5d91831
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 5 deletions

View file

@ -209,7 +209,7 @@ function item_post(App $a) {
}
// Allow commenting if it is an answer to a public post
$allow_comment = ($profile_uid == 0) && $parent && in_array($parent_item['network'], [NETWORK_OSTATUS, NETWORK_DIASPORA]);
$allow_comment = ($profile_uid == 0) && $parent && in_array($parent_item['network'], [NETWORK_OSTATUS, NETWORK_DIASPORA, NETWORK_DFRN]);
/*
* Now check that it is a page_type of PAGE_BLOG, and that valid personal details