global reports and logs ip fixes

merge-requests/208/head
fatchan 4 years ago
parent a517a3659c
commit 9d15ddf251
  1. 4
      models/pages/globalmanage/logs.js
  2. 2
      views/pages/globalmanagereports.pug

@ -20,9 +20,9 @@ module.exports = async (req, res, next) => {
}
const ipMatch = decodeQueryIP(req.query, res.locals.permLevel);
if (ipMatch instanceof RegExp) {
filter['ip'].single = ipMatch;
filter['ip.single'] = ipMatch;
} else if (typeof ipMatch === 'string') {
filter['ip'].raw = ipMatch;
filter['ip.raw'] = ipMatch;
}
let logs, maxPage;

@ -17,7 +17,7 @@ block content
input(type='hidden' name='_csrf' value=csrf)
hr(size=1)
if ip
h4.no-m-p Reports against or by ...#{ip}
h4.no-m-p Reports against or by #{ip}
hr(size=1)
for report in reports
.thread

Loading…
Cancel
Save