aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-23 18:48:33 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-23 18:48:33 -0700
commita67213627c3124fc55f2545d138d368c4dea0fbe (patch)
tree9108a0b4d59627c49f80b08ed5485bad23ce2050 /include
parent8cd583fd8ca1c81a13a08385a2cd6921395c0527 (diff)
downloadvolse-hubzilla-a67213627c3124fc55f2545d138d368c4dea0fbe.tar.gz
volse-hubzilla-a67213627c3124fc55f2545d138d368c4dea0fbe.tar.bz2
volse-hubzilla-a67213627c3124fc55f2545d138d368c4dea0fbe.zip
provide a comment_policy of "network: diaspora" to handle their special case public-posts-are-commentable-by-anybody permission without breaking any other permissions.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 9fefa699a..2701c3fa2 100755
--- a/include/items.php
+++ b/include/items.php
@@ -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;