From 900d4e7e18d3735f2e80ab42c043b01cdbff6605 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Sun, 5 Apr 2020 20:12:31 +0530 Subject: [PATCH] ikiwiki: Disable edits. Add moderation of comments Fixes #1631 Signed-off-by: Joseph Nuthalapati Reviewed-by: James Valleroy --- plinth/modules/ikiwiki/data/etc/ikiwiki/plinth-blog.setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/ikiwiki/data/etc/ikiwiki/plinth-blog.setup b/plinth/modules/ikiwiki/data/etc/ikiwiki/plinth-blog.setup index b7a83a418..2a8ff8f2c 100644 --- a/plinth/modules/ikiwiki/data/etc/ikiwiki/plinth-blog.setup +++ b/plinth/modules/ikiwiki/data/etc/ikiwiki/plinth-blog.setup @@ -25,13 +25,14 @@ IkiWiki::Setup::Automator->import( cgiurl => "/ikiwiki/$wikiname_short/ikiwiki.cgi", cgiauthurl => "/ikiwiki-auth/$wikiname_short/ikiwiki.cgi", cgi_wrapper => "/var/www/ikiwiki/$wikiname_short/ikiwiki.cgi", - add_plugins => [qw{goodstuff websetup comments calendar sidebar trail httpauth}], + add_plugins => [qw{goodstuff websetup comments calendar sidebar trail httpauth lockedit opendiscussion moderatedcomments userlist remove}], rss => 1, atom => 1, syslog => 1, example => "blog", comments_pagespec => "posts/* and !*/Discussion", archive_pagespec => "page(posts/*) and !*/Discussion", + locked_pages => "* and !postcomment(*)", global_sidebars => 0, discussion => 0, tagbase => "tags",