diff --git a/webapp/controllers/mods.js b/webapp/controllers/mods.js index 4342586..c504934 100644 --- a/webapp/controllers/mods.js +++ b/webapp/controllers/mods.js @@ -38,12 +38,13 @@ router.get("/mod/:author/:modname", function(req, res) { include: [{ model: db.User, where: { username: req.params.author } - }] + }, db.Work] }).then(function(mod) { if (mod) { var mod_c = db.convertRowToMod(mod) switch (req.accepts("html", "json")) { case "html": + mod_c.works = mod.works res.render("mod", { title: mod.title, mod: mod_c diff --git a/webapp/views/mod.liquid b/webapp/views/mod.liquid index 1c47047..25825a0 100644 --- a/webapp/views/mod.liquid +++ b/webapp/views/mod.liquid @@ -14,4 +14,15 @@ by Forum Topic | {{ mod.author }}'s mods +