Forums | Mahara Community
Support
/
Make comments private by default?
08 November 2022, 0:28
When you add a comment to a Mahara page, the setting "Make public" is switched on by default. You have to switch this to ‘No’ if you don’t want everyone who has access to this page to see your comment.
Is it possible to change this default configuration setting to 'No'? How?
(On Mahara 22.10) Thanks in advance.
21 November 2022, 21:24
Hi Richard,
I'm posting the answer here so we can close the loop. We've found the spot in our meeting today:
In /htdocs/artefact/comment/lib.php around line 1061, in the code block:
$form['elements']['ispublic'] = array(
'type' => 'switchbox',
'title' => get_string('makecommentpublic', 'artefact.comment'),
'defaultvalue' => !$defaultprivate,
The last line needs to read
'defaultvalue' => $defaultprivate,
for comments to be private by default.
Thank you
Kristina