This commit is contained in:
v 2019-02-25 16:10:24 +03:00
parent c8f1a52b7c
commit 198847082e
2 changed files with 3 additions and 7 deletions

View File

@ -732,13 +732,9 @@ class Metadata extends WikiItem {
}
}
class MainPage extends WikiItem {
class MainPage extends Metadata {
constructor ( ) {
super( '.', 'mainpage' )
this.mimeType = 'text/plain'
}
basePath () {
return 'mainpage'
super( 'mainpage' )
}
async getData ( ) {
const reply = await apiPost({

View File

@ -1409,7 +1409,7 @@ async function initialise () {
if ( await fs.exists( dbPath )) {
preProcessed = true
try {
mainPage.urlKey = 'A' + ( await fs.readFile( osPath.join( srcPath, 'mainpage' ))).toString()
mainPage.urlKey = 'A' + ( await fs.readFile( osPath.join( srcPath, 'M', 'mainpage' ))).toString()
} catch ( err ) {
warning( 'mainpage error', err )
}