diff --git a/controllers/views.cc b/controllers/views.cc index 8748e5d..7b0dae5 100644 --- a/controllers/views.cc +++ b/controllers/views.cc @@ -171,7 +171,7 @@ void views::botlist( q.append(" ORDER BY votes"); db->execSqlAsync(q, - [justMine, sessionData, callback] (const orm::Result &rows) { + [justMine, modView, sessionData, callback] (const orm::Result &rows) { std::map bot_list; for (const auto& r : rows) { Bot bot = deserializeBot(r); @@ -179,7 +179,7 @@ void views::botlist( } auto data = HttpViewDataPrep(sessionData); - data.insert("modView", false); + data.insert("modView", modView); data.insert("justMine", justMine); data.insert("authed", bool(sessionData)); data.insert("bots", bot_list);