Commit 2a1e843b authored by Henrik Hüttemann's avatar Henrik Hüttemann 🤔

Change fallback cover to AutoLib Logo

parent 0dea1125
Pipeline #753 passed with stage
in 46 seconds
......@@ -131,8 +131,11 @@ export default {
checkString: 'Hello from IPFS Gateway Checker'
},
db: 'https://db.beef.h3n.eu/autolib/',
backend: 'https://backend.beef.h3n.eu/'
// backend: 'http://localhost:3000/'
backend: 'https://backend.beef.h3n.eu/',
// backend: 'http://localhost:3000/',
fallbackCover: {
ipfs: 'QmW5Pudq51krkAsqRb6qCG2Yp93WnEsVpV2TE926uAWhXP'
}
},
checks: {
db: false,
......@@ -352,7 +355,7 @@ export default {
})
},
getCoverUrl (covers) {
let cover = covers.find(c => c.type.toLowerCase().includes('front')) || covers[0] || { ipfs: 'QmeEGHhMNvucwtSjW7ar2CHgR4RwVThZUkBGCYAENs2d3D' }
let cover = covers.find(c => c.type.toLowerCase().includes('front')) || covers[0] || this.config.fallbackCover
return this.config.ipfs.gateway + cover.ipfs
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment