$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;
$writable = false;
}
+ if (!local_user()) {
+ $writable = false;
+ }
+
if ($mode === 'network-new' || $mode === 'search' || $community_readonly) {
/*