Ensuring that only local users can comment on community items
This commit is contained in:
parent
6531313b73
commit
b677bdd4ff
|
@ -619,7 +619,7 @@ function conversation(App $a, $items, $mode, $update, $preview = false) {
|
|||
$community_readonly = ($mode === 'community');
|
||||
|
||||
// Currently behind a config value. This allows the commenting and sharing of every public item.
|
||||
if (Config::get('system', 'comment_public') && local_user()) {
|
||||
if (Config::get('system', 'comment_public')) {
|
||||
if ($mode === 'community') {
|
||||
$community_readonly = false;
|
||||
$writable = true;
|
||||
|
@ -630,6 +630,10 @@ function conversation(App $a, $items, $mode, $update, $preview = false) {
|
|||
$writable = false;
|
||||
}
|
||||
|
||||
if (!local_user()) {
|
||||
$writable = false;
|
||||
}
|
||||
|
||||
if ($mode === 'network-new' || $mode === 'search' || $community_readonly) {
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user