mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 22:19:40 +08:00
fix: hackerone hacktivity replace null severity (#3946)
This commit is contained in:
@@ -32,7 +32,7 @@ module.exports = async (ctx) => {
|
|||||||
const author = item.node.reporter.username;
|
const author = item.node.reporter.username;
|
||||||
const vendor = item.node.team.name;
|
const vendor = item.node.team.name;
|
||||||
const state = item.node.report.substate.replace(/^[a-z]/g, (L) => L.toUpperCase());
|
const state = item.node.report.substate.replace(/^[a-z]/g, (L) => L.toUpperCase());
|
||||||
const severity = item.node.severity_rating.replace(/^[a-z]/g, (L) => L.toUpperCase());
|
const severity = item.node.severity_rating ? item.node.severity_rating.replace(/^[a-z]/g, (L) => L.toUpperCase()) : 'No Rating';
|
||||||
const awarded = item.node.total_awarded_amount ? item.node.total_awarded_amount : 0;
|
const awarded = item.node.total_awarded_amount ? item.node.total_awarded_amount : 0;
|
||||||
return {
|
return {
|
||||||
title: item.node.report.title,
|
title: item.node.report.title,
|
||||||
|
|||||||
Reference in New Issue
Block a user