You've already forked AstralRinth
forked from didirus/AstralRinth
Allow null changelogs
This commit is contained in:
@@ -140,8 +140,11 @@ export default {
|
|||||||
|
|
||||||
version.author = members.find((x) => x.user_id === version.author_id)
|
version.author = members.find((x) => x.user_id === version.author_id)
|
||||||
|
|
||||||
res = await axios.get(version.changelog_url)
|
let changelog = ''
|
||||||
const changelog = xss(marked(res.data))
|
if (version.changelog_url) {
|
||||||
|
res = await axios.get(version.changelog_url)
|
||||||
|
changelog = xss(marked(res.data))
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
mod,
|
mod,
|
||||||
|
|||||||
Reference in New Issue
Block a user