Fix the commit information for page deletion.
Now they will be authored by the gollum.author.
This commit is contained in:
+3
-1
@@ -258,7 +258,9 @@ module Precious
|
||||
wiki = wikip.wiki
|
||||
page = wikip.page
|
||||
unless page.nil?
|
||||
wiki.delete_page(page, { :message => "Destroyed #{name} (#{page.format})" })
|
||||
commit = commit_message
|
||||
commit[:message] = "Destroyed #{name} (#{page.format})"
|
||||
wiki.delete_page(page, commit)
|
||||
end
|
||||
|
||||
redirect to('/')
|
||||
|
||||
Reference in New Issue
Block a user