# Check if we are asked to render a certain revision
revision = self.get_argument("revision", None)
+ comment = self.get_argument("comment", None)
# Fetch the wiki page
page = self.backend.wiki.get_page(path, revision=revision)
with self.db.transaction():
page = page.restore(
- author=self.current_user, address=self.get_remote_ip(),
+ author=self.current_user,
+ address=self.get_remote_ip(),
+ comment=comment,
)
# Redirect back to page