provide a comment_policy of "network: diaspora" to handle their special case public-posts-are-commentable-by-anybody permission without breaking any other permissions.
This commit is contained in:
parent
8cd583fd8c
commit
a67213627c
@ -272,6 +272,8 @@ function can_comment_on_post($observer_xchan, $item) {
|
||||
}
|
||||
if(strstr($item['comment_policy'],'network:') && strstr($item['comment_policy'],'red'))
|
||||
return true;
|
||||
if(strstr($item['comment_policy'],'network:') && strstr($item['comment_policy'],'diaspora'))
|
||||
return true;
|
||||
if(strstr($item['comment_policy'],'site:') && strstr($item['comment_policy'],get_app()->get_hostname()))
|
||||
return true;
|
||||
|
||||
|
Reference in New Issue
Block a user